| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| 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™.