Thursday, December 19, 2013

[Crazy] to read and write files, or want to use FILE, accustomed NSData, NSFileHandle. . . . .

posts by ccnyou edited 2011-10-13 20:37:30
Want to write a program, turn the txt plist, then xcode write with NSData, NSFileHandle. . . But there should NSData binary data According tabs into NSString. . . . do not know how to traverse . . . Depressed. . . UK reference documentation, it seems a lot of pressure ah. . .
Reply:
I'll look up documents. . . We reply ah, otherwise I do not know who to
points
Reply:
A character to traverse, the case tab is a complete word;



Reply:
Yeah supports C + +, you can also use FILE ......
Reply:
FILE, want to use. But also habits NSData
Reply:
Not ah, the environment with objc, so you can not use C + +
Reply:
Directly into the document. Mm and then use c + + syntax on the line
Reply:
Direct nsstring stringWithContentsOfFile, then componentsSeparatedByString: @ "\ t"
Reply:
Agreed to the 7th floor, NSString is actually quite powerful
Reply:
reference to the 6th floor gssnail reply:
mm directly into the document and then use c + + syntax on the line

.+ +
Reply:
reference to the 7th floor flyeag reply:
direct nsstring stringWithContentsOfFile, then componentsSeparatedByString: @ "\ t"

+ +

No comments:

Post a Comment