Re: Can't set offset of a file NSOutputStream with appending enabled
Re: Can't set offset of a file NSOutputStream with appending enabled
- Subject: Re: Can't set offset of a file NSOutputStream with appending enabled
- From: Jens Alfke <email@hidden>
- Date: Sat, 08 Jun 2013 11:58:51 -0700
On Jun 4, 2013, at 10:32 AM, Hank Bao <email@hidden> wrote:
> I tried to set the offset property of a file NSOutputStream by NSStreamFileCurrentOffsetKey with appending enabled with code listed below. But it doesn't work.
FYI, I’ve rarely found it useful to use NSStream or NSFileHandle for file I/O. Instead I just use the standard C library calls (fopen, fread, etc.) or the POSIX calls (open, read, etc.) I find them easier to use, more flexible, and of course cross-platform.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden