开发者

put something in .txt file

开发者 https://www.devze.com 2023-02-16 23:15 出处:网络
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 UI

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

0

精彩评论

暂无评论...
验证码 换一张
取 消