[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: fopen(.., "a") + fseek
In article <8168.1225991606%epsilon.noi.kre.to@localhost>,
Robert Elz <kre%munnari.OZ.AU@localhost> wrote:
> Date: Thu, 6 Nov 2008 11:06:38 -0500
> From: "Martin S. Weber" <Ephaeton%gmx.net@localhost>
> Message-ID: <20081106160638.GC741%agamemnon.entropie.local@localhost>
> | Nope. I've opened the file with "a" which is for writing only. In
> | this light, the fseek "fails".
>No, the fseek() works just fine - while in just "a" mode you can't use
>fread() (or any other input function) to check that, you can still use ftell().
Yes, but I would stop using fseek and ftell and start using fgetpos and fsetpos.
Main Index |
Thread Index |