What is the prefered loop for reading to the end of a file?
while (!filestream.eof())
or
while (!filestream.fail())
What is the major difference between the fail() and eof() test?
should I perhaps || them together?
I experemented with reading a text file and both seamed to give the same
results.
As alway, any info would be greatly apperaciated.
thanks!
-Jamie
... Pentiums melt in your PC, not in your hand.
--- FMail/386 1.02
---------------
* Origin: KastlerocK + Jeannette, PA + 412.527.3749 (1:129/230)
|