[En-Nut-Discussion] Strange behavior with files using file attributes '+' or 'a'
Harald Kipp
harald.kipp at egnite.de
Mon Mar 31 17:26:02 CEST 2008
Michael Bieri wrote:
>> Andreas Helmcke wrote:
>>> For me it works properly when opening the file with the correct attributes and
>>> doing fseek(...,0,SEEK_END) immediately afterwards.
> Andreas' proposal does fix the problem with the 'a'-attribute.
Not really. I checked the fopen() manual page again. If I understood
this correctly, 'a' will always append, while the file pointer starts at
the beginning of the file and is used for reading only.
Harald
More information about the En-Nut-Discussion
mailing list