delorie.com/archives/browse.cgi | search |
From: | sos AT prospect DOT com DOT ru (Sergey Okhapkin) |
Subject: | RE: B18&17.1 problem reading large files (more than 28k!) with read() or fread() |
18 May 1997 02:54:46 -0700 : | |
Sender: | mail AT cygnus DOT com |
Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
Distribution: | cygnus |
Message-ID: | <01BC6385.D63578C0.cygnus.gnu-win32@sos> |
Original-To: | "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>, |
"'Paul Toseland'" | |
<paul DOT toseland AT virgin DOT net> | |
Encoding: | 13 TEXT |
Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
Paul Toseland wrote: > I stat a file (a Net$cape FAT.DB), using its DOS filename, and it tells > me it is 692224 bytes long. I open it, fstat it, with the same result. > I read from it, it reads 28720 bytes and gives end of file. The same > int handle = open(s1, O_RDONLY); int handle = open(s1, O_RDONLY | O_BINARY); -- Sergey Okhapkin Moscow, Russia Looking for a job - For help on using this list (especially unsubscribing), 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 |