Reading past end-of-file
-
I have a file that I read character by character. However, the file is scattered with '^Z' (control-Z) characters so the process stops at the first of them due to end-of-file. Is there a way to ignore these characters and continue reading till I reach the "real" end of the file? Thanks!
-
I have a file that I read character by character. However, the file is scattered with '^Z' (control-Z) characters so the process stops at the first of them due to end-of-file. Is there a way to ignore these characters and continue reading till I reach the "real" end of the file? Thanks!
You need to open the file in binary (not text) mode. Are you using stdio or iostream? Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
-
You need to open the file in binary (not text) mode. Are you using stdio or iostream? Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
Thanks! That solved the problem. (I'm using iostream.) :)