• 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: searching a string in big file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: searching a string in big file


  • Subject: Re: searching a string in big file
  • From: Arie Pieter Cammeraat <email@hidden>
  • Date: Sat, 13 Jun 2009 08:46:16 +0200

you can use some methods of NSString, but I doubt wether NSString performs well with really big string.
I once tried to work with the Unix tool 'grep' for searching something in the iTunes Library xml file. That was amazingly fast! You can use it in cocoa with NSPipe etc.



Op 13-jun-2009, om 7:55 heeft Angelo Chen het volgende geschreven:

Hi,
I need to open a big file and search for a certain string, if found, I need tup do some updates and write back the file, any idea what approach I should take? Thanks,
Angelo



Yahoo!香港提供網上安全攻略,教你如何防範黑客! 請前往 http:// hk.promo.yahoo.com/security/ 了解更多!
_______________________________________________


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:
40yaranga.nl


This email sent to email@hidden

_______________________________________________

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: 
 >searching a string in big file (From: Angelo Chen <email@hidden>)

  • Prev by Date: Cocoa equivalent to Quartz's CGImageCreateWithImageInRect(image, imageRect);
  • Next by Date: Re: Card Game (like Spider-Solitaire) in Cocoa -- Conceptual ideas needed
  • Previous by thread: Re: searching a string in big file
  • Next by thread: Re: searching a string in big file
  • Index(es):
    • Date
    • Thread