Re: getc() ?? bug
- Posted by Derek Parnell <derekp at solace.com.au> Nov 20, 2000
- 411 views
One of the cute things about old operating systems like DOS is that they use embedded control characters that mean things in text files. The ASCII-26 is the control character that means End-Of-File. Open the file as a binary file instead of a text file and the problem should go away. ----- cheers, Derek Parnell >Subject: getc() ?? bug > > >How can the getc return #FFFFFFFF from the middle of file when > it is only reading byte sizes. > > If I ignore this false EOF and looked at the data return after > this point and it is ok. > > I then compared a dump ( using another program ) of the same file > and the dump of the getc function. The code that is returning the >#FFFFFFFF > in Euphoria is a #1A ( 26 decimal ) as a keyboard scancode it represents