Skip to main content

Home/ educators/ Group items tagged EOf

Rss Feed Group items tagged

Nelly Cardinale

C And C++ - Trouble With Eof() Function | DreamInCode.net - 0 views

  •  
    Yes that's right. EOF is a flag which is set after a failed read attempt to read past the end of a file. the "While not EOF" idiom doesn't quite work in C or C++ - Instead its usually suggested that you use the idiom of "read while there is data to be read"; for example, while ( getline(file, my_string) ) 0r while( file >> x ) Author thanked 50 times
1 - 1 of 1
Showing 20 items per page