• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: adding to a file rather than replacing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: RE: Listening on system restricted ports
  • Next by Date: Problem using URLAccess for HTTPS
  • Previous by thread: adding to a file rather than replacing
  • Next by thread: Listening on system restricted ports
  • Index(es):
    • Date
    • Thread