file i/o and char array question
Is it safe to do this, or should I empty the char array somehow between the reads:
char ch[20];
ifstream file;
file.open( filename );
file >> ch;
file >> ch;
file.close( );
I want the second read to replace everything in the char array.
quote: Is it safe to do this
yes
[edited by - Gee on July 18, 2002 4:16:41 AM]
---GUI Programming Division Manager at Wildfire Gamesworking on the 0 A.D. project
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement