manipulating ascii file
By trifol at Sat, Apr 12 2008 9:06pm |
Hi,
Does anyone has a examples or tutorial on how to manipulating ascii files with Objective C?
ie: replacing/deleting characters
A bit like the Spectra application, being new to programming I am struggling to understand all :(.
Ciao
Hugh



Re: manipulating ascii file
Hi Hugh,
String manipulations in Cocoa are pretty easy depending on what you need. You probably want NSMutableStrings and you can load the string with the contents of a file. Look for stringWithContentsOfFile (NSString) in the documentation and also replaceOccurrencesOfString:withString:options:range: in NSMutableString.
Hope that helps,
Dave