Re: reading in text files
Re: reading in text files
- Subject: Re: reading in text files
- From: Ben Mackin <email@hidden>
- Date: Thu, 31 Jan 2002 17:52:22 -0800
After reading over a few of the respoonses (mainly how 16k is not that much
to worry about storing in a NSString), I started reading up on how to put
the contents of a text file into an NSString and I found this:
+ (id)stringWithContentsOfFile:(NSString *)path
So I used this and (for now) just spit out the newly created string into an
NSTextView. But I got this warning from ProjectBuilder:
warning: `NSString' does not respond to `stringWithContentsOfFile:'
I don't quite get what this means, but when I check my newly created string,
it is nil, so nothing is displayed.
Thanks for any help,
Ben