Re: Query on File Wrapping
Re: Query on File Wrapping
- Subject: Re: Query on File Wrapping
- From: Jens Alfke <email@hidden>
- Date: Thu, 8 Apr 2010 09:22:24 -0700
On Apr 7, 2010, at 11:56 PM, Swetha Chinthireddy wrote:
Currently once the file size reaches 10MB , we are creating a new
file and copying the last 4KB messages to the new file.But the
requirement is to wrap the file i.e to always keep the latest 10MB
traces.
There isn't any filesystem call to delete bytes from within the file.
Just create a new file and copy the last 10MB to it. But don't do this
on every write, of course, because copying 10MB isn't cheap.
—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