• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: From text file to NSString...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: From text file to NSString... (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: File Type for binary files
  • Next by Date: Re: TIFFRepresentationUsingCompression not working as it should
  • Previous by thread: Re: From text file to NSString...
  • Next by thread: Re: From text file to NSString...
  • Index(es):
    • Date
    • Thread