lots of find/replace in text file
lots of find/replace in text file
- Subject: lots of find/replace in text file
- From: Jeremy Matthews <email@hidden>
- Date: Sat, 22 Jan 2011 09:19:50 -0500
So...the app I previously mentioned, ala Mad Libs...I now have lots more text to replace within the file (new additions). Besides using find/replace using NSScanner and NSStrings' stringByReplacingOccurrencesOfString....is there a better way, to perform a slew of find/place operations with a text file?
So far, I have an array of strings (placeholders) which get replaced by an array of user-determined values, and the resulting mishmash gets spewed into a file.
I can't help but think there might be a better (and more efficient way) of handling this?
Thanks,
j
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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