Re: NSString and txt file
Re: NSString and txt file
- Subject: Re: NSString and txt file
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 14 Apr 2004 15:11:03 -0600
On Apr 14, 2004, at 2:44 PM, Martha Espinosa wrote:
I am trying to read in .txt file from a mounted drive so I have tried
the following...
[...]
can anyone point out what am I doing wrong??
All of the attempts you made set a string that was equal to some path,
but you still need to actually read in the file. So something like this
should work: (warning - written in Mail, untested, use at your own
risk, etc.)
NSString *text = [NSString stringWithContentsOfFile:[NSString
stringWithFormat:@"/tmp/SWinstallers.txt"]];
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
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.