Currently I have a task, is to make a text file into a property list plist, two problems are encountered:
1 put into supporting files in a text file (also copy) after just under Xcode click on the txt file (about 200KB), Xcode will crash crash. To view this document only with an external text editor. What is the reason of this problem is? How to solve? I suspect that the file is too big and has a relationship because another small txt file no problem.
(2) The first step I want to read the entire file into a string, I use the following method:
NSString * filePath = [[NSBundle mainBundle] pathForResource: @ "Contact" ofType: @ "txt"];
NSString * bookString = [NSString stringWithContentsOfFile: filePath encoding: NSUTF8StringEncoding error: nil];
However, the program did not find the debug text file read into the string. May I ask how to solve this problem?
Reply:
Document processing problems chant
Reply:
Program access space, only pieces of the file under Document file is writable!
Reply:
Thank you for help, the problem has been resolved
Reply:
The second problem is how to solve? Hey, just encountered this problem. . The landlord does not talk about solving results. . .
No comments:
Post a Comment