• 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
Parsing strings? File getline?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parsing strings? File getline?


  • Subject: Parsing strings? File getline?
  • From: zauhar <email@hidden>
  • Date: Tue, 5 Mar 2002 09:33:21 -0500
  • Scubber-version: 1.7 (portal)

Sorry for such elementary questions, but I have searched to no avail...

Are there no methods for parsing NSStrings? I am looking for something that would split a string into substrings given a set of separator characters (perhaps returning an array of string objects). Right now I am converting the NSString to a C string and using my old favorite strrtok! Seems lame. I could write a method to do this, but I can't believe it is not already sitting there.

Along the same line, is there no method for grabbing lines of text from a file?

It seems strange that I am having such a hard time doing this simple stuff.

Thanks!

Randy


Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104

Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web: http://tonga.usip.edu/zauhar

Thought for the ages:

"If you have conceptions of things that you can have no conception of,
then the conception and the thing appear to co-incide." -- C.G. Jung

Thought for the new millennium:

"Nothing is gooder than watching cartoons." -- Catherine Zauhar, age 5
_______________________________________________
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.

  • Follow-Ups:
    • Re: Parsing strings? File getline?
      • From: Steve Bird <email@hidden>
  • Prev by Date: Re: window focus trouble
  • Next by Date: Re: window focus trouble
  • Previous by thread: Re: Multiple controls undo (NSTextView + NSTextField)
  • Next by thread: Re: Parsing strings? File getline?
  • Index(es):
    • Date
    • Thread