Thread: eof bit not set
View Single Post
Go4Expert Member
6Oct2007,03:04  
mad_girl's Avatar
why such two easy lines don work
char c;
while(!file.eof ())
{ file.read(c,1); cout<<c; }
the loop is infinite i don know why the eof bit is not set or what