Re: Simple File Data Reading Question
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.