help-gnustep
[Top][All Lists]
Advanced

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

Re: question about writeToFile:


From: Richard Frith-Macdonald
Subject: Re: question about writeToFile:
Date: Mon, 5 Jan 2004 10:40:15 +0000


On 4 Jan 2004, at 20:32, reuss wrote:

How can i use the writeToFile: method of NSObjects to append to an
existent file? is it possible only by loading the whole file in a
NSThing, append my record and save the whole thing?
thanks for any advice

The -writeToFile:atomically: method will not append ...
you need to read in the old version, append to it in memory,
and write the result out.

Alternatively, you can use the NSFileHandle class to append
data to an existing file.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]