Re: getc() ?? bug

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu