Sam Parrish
Sam Parrish

Reputation: 1387

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 UITextFields, but how do i put them strings in the file?

Thanks

Upvotes: 0

Views: 290

Answers (2)

visakh7
visakh7

Reputation: 26400

I think you can use writeToFile: method. Perhaps this may help.

Problem writing string to a file ...(iPhone SDK )

Upvotes: 1

FeifanZ
FeifanZ

Reputation: 16316

A few classes to get you started:

NSFileManager

NSString's path methods

NSFileHandle

Upvotes: 1

Related Questions