Quote:but the program doesn't finish and enters in the infinite loop . why?
fstream f( "test.txt", ios::in ); while( !inf.eof() ) { cout << f.get() << "\n"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)