PDA

View Full Version : Working With Text Files....


starboarder2001
12-05-2003, 08:35 AM
When parsing a text file generaly is the whole file read into memory, or do they read one line at a time from disk? I can see It being done eather way depending on what your doing. This is really my first time working with text files, and I would just like to see how other programmers do it.

http://www.vision-software.org/temp/CraLog.hpp
http://www.vision-software.org/temp/CraLog.cpp

[note:]don't view them in the browser...well you will see :no::confused:.

anubis
12-05-2003, 09:43 AM
it depends on the size of the file. but in general i'd load it all at once