put something in .txt file
I have (finally) managed to send a txt file via ftp to my server! YAY!
It is an empty .txt file at the moment. My question is - How do I put something in that .txt file. I can store NSStrings from UITextFie开发者_StackOverflowlds, but how do i put them strings in the file?
Thanks
I think you can use writeToFile:
method. Perhaps this may help.
Problem writing string to a file ...(iPhone SDK )
A few classes to get you started:
NSFileManager
NSString's path methods
NSFileHandle
精彩评论