Re: From text file to NSString...
Re: From text file to NSString...
- Subject: Re: From text file to NSString...
- From: Ondra Cada <email@hidden>
- Date: Thu, 4 Jul 2002 19:14:29 +0200
On Thursday, July 4, 2002, at 05:53 , Arthur VIGAN wrote:
And what if I just want to keep a particular line of the text/string?
In fact I'm trying to read the state of a process in this text file, so I
know which line to keep.
Unless the string is too long to be ineffective (which I bet it is not in
your case), the easiest way is
[[string componentsSeparatedByString:@"\n"] objectAtIndex:lineno]
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.