Re: Simple File Data Reading Question
Re: Simple File Data Reading Question
- Subject: Re: Simple File Data Reading Question
- From: Daniel Waylonis <email@hidden>
- Date: Tue, 10 Feb 2004 12:45:14 -0800
On Feb 9, 2004, at 11:09 PM, 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?
Hi Sam,
These methods will be helpful:
[NSString stringWithContentsOfFile:<NSString *path>];
[NSString componentsSeparatedByString:<NSString *sepString>];
[NSString intValue];
[NSNumber numberWithInt:];
Dan
_________________________________________________
Dan Waylonis email@hidden
Software Engineer
http://www.nekotech.com
nekotech SOFTWARE 650.964.2490 (O)
_______________________________________________
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.