From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Okhapkin To: "gnu-win32@cygnus.com" , "'Andres Takach'" Subject: RE: bug report Date: Thu, 13 Feb 1997 01:21:00 -0000 Message-id: <01BC19A1.A57F6570@gater.krystalbank.msk.ru> X-SW-Source: 1997-02/msg00321.html 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".