Jump to content


Working With Text Files....


1 reply to this topic

#1 starboarder2001

    Member

  • Members
  • PipPip
  • 35 posts

Posted 05 December 2003 - 03:35 PM

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-so...temp/CraLog.hpp
http://www.vision-so...temp/CraLog.cpp

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

#2 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 05 December 2003 - 04:43 PM

it depends on the size of the file. but in general i'd load it all at once
If Prolog is the answer, what is the question ?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users