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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com