• 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: Query on File Wrapping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Query on File Wrapping (From: "Swetha Chinthireddy" <email@hidden>)

  • Prev by Date: Re: CSS style string to NSAttributedString attributes conversion
  • Next by Date: Re: CSS style string to NSAttributedString attributes conversion
  • Previous by thread: Query on File Wrapping
  • Next by thread: [ANN] AppKiDo-for-iPhone 0.984 fixes bug with 3.2 SDK
  • Index(es):
    • Date
    • Thread