TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JERRY COFFIN
from: RICK SVYZEK
date: 1997-09-28 18:35:00
subject: Re: File reading

 -=> Quoting Jerry Coffin to Rick Svyzek <=-
 JC> A while loop is the most common method:
 JC> ifstream file("whatever.txt");
 JC> char buffer[256];
 JC> while ( !file.bad() ) {
 JC> file.getline(buffer, 256);
  Thanks, I'll add the while loop into my code.
      Rick
... Friends don't let friends use ATARI's...
___ Blue Wave/QWK v2.12
--- GAPNet Enhanced
---------------
* Origin: *The Lost Crypt**Northbridge, Mass(508)234-0613 (1:322/320.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.