¡@

Home 

2014/10/15 ¤U¤È 10:13:38

iphone Programming Glossary: savedstring

how to write in append mode for text file

http://stackoverflow.com/questions/4779877/how-to-write-in-append-mode-for-text-file

objectAtIndex 0 NSString documentTXTPath documentsDirectory stringByAppendingPathComponent @ Notes.txt NSString savedString textview.text savedString writeToFile documentTXTPath atomically YES NSFileHandle myHandle NSFileHandle fileHandleForUpdatingAtPath.. documentTXTPath documentsDirectory stringByAppendingPathComponent @ Notes.txt NSString savedString textview.text savedString writeToFile documentTXTPath atomically YES NSFileHandle myHandle NSFileHandle fileHandleForUpdatingAtPath documentTXTPath.. myHandle NSFileHandle fileHandleForUpdatingAtPath documentTXTPath myHandle seekToEndOfFile myHandle writeData savedString dataUsingEncoding NSUTF8StringEncoding myHandle closeFile iphone uitextview nsfilehandle share improve this question..