Re: [Advice] Inspecting a Plain Text File
Re: [Advice] Inspecting a Plain Text File
- Subject: Re: [Advice] Inspecting a Plain Text File
- From: Shawn Erickson <email@hidden>
- Date: Wed, 9 Mar 2005 09:17:01 -0800
On Mar 9, 2005, at 9:08 AM, Andy Satori wrote:
This should do the trick...
NSArray *lineInFile = [[[NSString alloc]
initWithFile:yourFileName]
componentsSeparatedByString:@"/n"];
That assume a lot about the line ending and encoding being used in the
text file.
It is better to use NSString's methods...
getLineStart:end:contentsEnd:forRange:
lineRangeForRange:
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden