Reading and writing text files are one of the most basic things you need to do in iPhone development. In iPhone OS 3.0 things have changed a little bit here and there with some methods being deprecated.
I just wrote two example methods that you can use to see how you can turn a NSString into a text file and reverse the process.