Click here to Skip to main content
15,920,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Manipulate text file Pin
toxcct17-Jun-04 1:00
toxcct17-Jun-04 1:00 
GeneralRe: Manipulate text file Pin
V.17-Jun-04 2:02
professionalV.17-Jun-04 2:02 
GeneralRe: Manipulate text file Pin
chauteen25-Aug-04 22:44
chauteen25-Aug-04 22:44 
GeneralRe: Manipulate text file Pin
V.25-Aug-04 23:23
professionalV.25-Aug-04 23:23 
Generalstill wnat to ask_Re: Manipulate text file Pin
chauteen26-Aug-04 18:15
chauteen26-Aug-04 18:15 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.26-Aug-04 20:47
professionalV.26-Aug-04 20:47 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
Anonymous2-Sep-04 0:47
Anonymous2-Sep-04 0:47 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.2-Sep-04 1:21
professionalV.2-Sep-04 1:21 
What we do here at work is to add "metadata" in the file, but still we always read the entire file into CStrings.
You can do something like:

"#value1|value2|...|valuen#" Where # = beginning - end and the | is a delimiter.

Note that 1 character is 1 byte long, this means you can load about 13000 lines (1 line ~ 80 characters) for each MegaByte of memory. Normally you have about 512 Mb, not to mention virtual memory.

Point is, it's really no problem loading the file into memory. The reading takes time, but as you may have noticed, Word, Excel, Notepad, ... all take some time to load their text.

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
chauteen2-Sep-04 16:22
chauteen2-Sep-04 16:22 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.2-Sep-04 20:59
professionalV.2-Sep-04 20:59 
QuestionAre there good WMI samples, articles, books ? Pin
vgrigor117-Jun-04 0:37
vgrigor117-Jun-04 0:37 
AnswerRe: Are there good WMI samples, articles, books ? Pin
Antony M Kancidrowski17-Jun-04 1:52
Antony M Kancidrowski17-Jun-04 1:52 
Generalbatch file for setting env variables Pin
John Oliver17-Jun-04 0:05
John Oliver17-Jun-04 0:05 
GeneralRe: batch file for setting env variables Pin
David Crow17-Jun-04 3:15
David Crow17-Jun-04 3:15 
GeneralRe: batch file for setting env variables Pin
John Oliver17-Jun-04 3:39
John Oliver17-Jun-04 3:39 
QuestionAny idea on this simple application? Pin
Nelson L.16-Jun-04 22:25
Nelson L.16-Jun-04 22:25 
AnswerRe: Any idea on this simple application? Pin
John Oliver17-Jun-04 0:08
John Oliver17-Jun-04 0:08 
GeneralON_COMMAND_RANGE problem Pin
ThatsAlok16-Jun-04 22:20
ThatsAlok16-Jun-04 22:20 
GeneralRe: ON_COMMAND_RANGE problem Pin
Cedric Moonen16-Jun-04 23:24
Cedric Moonen16-Jun-04 23:24 
Generaloperator- in Date Class Pin
foxele16-Jun-04 21:35
foxele16-Jun-04 21:35 
GeneralRe: operator- in Date Class Pin
V.16-Jun-04 22:00
professionalV.16-Jun-04 22:00 
GeneralRe: operator- in Date Class Pin
John Oliver17-Jun-04 2:12
John Oliver17-Jun-04 2:12 
GeneralRe: operator- in Date Class Pin
John Oliver17-Jun-04 0:20
John Oliver17-Jun-04 0:20 
GeneralActiveX Registration Pin
marcomars16-Jun-04 21:31
marcomars16-Jun-04 21:31 
QuestionDoes ALU inside the cpu handle floating point? or cpu will let the FPU handle it? Pin
Link260016-Jun-04 21:16
Link260016-Jun-04 21:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.