This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: bug report
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'Andres Takach'" <takach at ece dot iit dot edu>
- Subject: RE: bug report
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Thu, 13 Feb 1997 11:32:47 +0300
- Encoding: 16 TEXT
Andres Takach wrote:
>
> There seems to be a problem in the read() (getc etc.) when
> reading binary files. A character 1A can confuse the read
> to think that it has found the end of file.
> fp = fopen("temp","w");
>
> fp = fopen("temp","r");
You should open binary files with "wb"/"rb" mode flags.
--
Sergey Okhapkin
Moscow, Russia
Looking for a job.
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".