Search results

  1. P

    how do I read text from a file into a string?

    I figured out how to do it. I actually had it figured out before, (you were all probably laughing at me) but I didnt know how to confirm it. And I had to also figure out how to deal with the autorelease memory pool business, here is the code that works: NSAutoreleasePool *pool =...
  2. P

    how do I read text from a file into a string?

    Hi, I'm trying to do what seems like a very basic thing, but for some reason i can't figure it out. I've searched the web far and wide for a simple tutorial or example, and the best I could find was this: NSString *pathToFile = [@"~/Desktop/smallTextFile.txt"...
Back
Top