Advertisement

file i/o and char array question

Started by July 18, 2002 03:10 AM
0 comments, last by sj 22 years, 4 months ago
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