• 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: Simple File Data Reading Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple File Data Reading Question


  • Subject: Re: Simple File Data Reading Question
  • From: Daniel Todd Currie <email@hidden>
  • Date: Tue, 10 Feb 2004 22:16:32 -0800

If your file is just a text file, It might be easier to do:

NSString *someString = [NSString stringWithContentsOfFile:filePath];
NSArray *someArray = [someString componentsSeparatedByString:@" "];

// Daniel Currie


On 2004 Feb 09, at 23:09, Sam Daniel wrote:

What is the specific code using

(BOOL)readFromFile:(NSString *)fileName ofType(NSString *)docType

to retrieve 3 integer numbers (separated by white space) in a single
line text file and place them into an NSArray?

Sam Daniel
_______________________________________________
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.
_______________________________________________
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: 
 >Simple File Data Reading Question (From: Sam Daniel <email@hidden>)

  • Prev by Date: Re: Making the correct button the default button?
  • Next by Date: Re: Adding to the About window.
  • Previous by thread: Re: Simple File Data Reading Question
  • Next by thread: Re: Simple File Data Reading Question
  • Index(es):
    • Date
    • Thread