tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: fopen(.., "a") + fseek

In article <>,
Robert Elz  <kre%munnari.OZ.AU@localhost> wrote:
>    Date:        Thu, 6 Nov 2008 11:06:38 -0500
>    From:        "Martin S. Weber" <>
>    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.


Home | Main Index | Thread Index | Old Index