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
--- 2009年6月13日 星期六,Stephen J. Butler <stephen.but...@gmail.com> 寫道﹕ 寄件人: Stephen J. Butler <stephen.but...@gmail.com> 主題: Re: searching a string in big file 收件人: 副本(CC): cocoa-dev@lists.apple.com 日期: 2009年6月13日,星期六,下午2:04 2009/6/13 Angelo Chen <angelochen...@yahoo.com.hk>: > 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, overwriting existing characters) or is it more of an inserting new characters operation? _______________________________________________ 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/angelochen960%40yahoo.com.hk This email sent to angelochen...@yahoo.com.hk Yahoo! 推出全...@ymail.com 電郵地址,想登記你的新身份? 請前往 http://hk.promo.yahoo.com/mail/ymail/ 了解更多相關資訊! _______________________________________________ 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