Re: searching a string in big file

2009-06-14 Thread Arie Pieter Cammeraat
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, o

Re: searching a string in big file

2009-06-13 Thread Andrew Farmer
On 13 Jun 2009, at 00:27, Angelo Chen wrote: Hi Stephen, Thanks for the quick reply, it is a binary file, coming from Quicktime's mov, I need to search backward for a string 'free', then change it to 'moov', so search should start from the end of file, any ideas? Thanks, Angelo This is n

Re: searching a string in big file

2009-06-13 Thread Angelo Chen
tler 寫道﹕ 寄件人: Stephen J. Butler 主題: Re: searching a string in big file 收件人: 副本(CC): cocoa-dev@lists.apple.com 日期: 2009年6月13日,星期六,下午2:04 2009/6/13 Angelo Chen : > 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,

Re: searching a string in big file

2009-06-12 Thread Stephen J. Butler
2009/6/13 Angelo Chen : > 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, 32 or 64 bit? What is the encoding (ASCII, UTF-8, UTF-16, etc)? Are the updates in place (that is,

searching a string in big file

2009-06-12 Thread Angelo Chen
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/ 了解更多! __