Subject: Re: read(), write() and ftell(), feof()
From: [email-masked] (Michael Weiser)

10 Jul 1998 01:41:50 -0700
Message-ID: <35a7eec1.2055385.cygnus.gnu-win32@mail>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: "ChazinD" <[email-masked]>
Cc: [email-masked]

Hi ChazinD,

You wrote:

>Under win32 (nad also linux) when reading/writing to a file using
>read()/write() does not update the file pointer information so that functions
>like ftell() and feof() do not work properly. These functions do update the
>file pointers properly under Solaris and Unixware. What gives?
I don't know for sure but because of the internal buffer of most
modern OSs ans clibs you might have to flush the buffer first using
fflush(3) or sync(2). But normally the clib should take care of this
internally... :-|

bye

Michael
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".