Search code examples
objective-ciphonexcodetextdocuments

Display Text From a Document's File - iPhone SDK


Does anyone know how to display a text file, if its in the "Documents" folder of the iPhone application? The extension might not always be ".txt", but I would like to give it a try.

Thanks,

Kevin


Solution

  • [NSString stringWithContentsOfFile:filename];

    and throw it in a text field