| delorie.com/archives/browse.cgi | search |
| From: | sos AT prospect DOT com DOT ru (Sergey Okhapkin) |
| Subject: | RE: bug report |
| 13 Feb 1997 04:52:16 -0800 : | |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <01BC19A1.A57F6570.cygnus.gnu-win32@gater.krystalbank.msk.ru> |
| Original-To: | "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>, |
| "'Andres Takach'" | |
| <takach AT ece DOT iit DOT edu> | |
| Encoding: | 16 TEXT |
| Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
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 AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |