Re: adding to a file rather than replacing
Re: adding to a file rather than replacing
- Subject: Re: adding to a file rather than replacing
- From: Frederick Cheung <email@hidden>
- Date: Sat, 26 Mar 2005 20:11:11 +0000
On 26 Mar 2005, at 20:07, email@hidden wrote:
From: Bob Sabiston <email@hidden>
Subject: adding to a file rather than replacing
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Hello,
I am using CFNetwork to stream information to a file on an ftp
site.
Each time it makes a new file. Is there any way to just append
information to the file if it already exists? I could read all the
information in the existing file and then write the whole thing out
again, but this would waste a lot of time uploading and downloading.
Have you tried setting kCFStreamPropertyFTPFileTransferOffset on your
stream (before you open it). Don't forget to check
kCFStreamPropertyFTPFileTransferOffset after the stream is ready as the
server might not support (or not have enabled) this feature
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden