|Dec 8, 2008, 07:33 AM||#1|
Parsing Text file
I want to parse a text file.
I used the below code for parsing .xml file.
In this code i cannot parse .txt file.
Can anybody please give me the code?
|Dec 10, 2008, 12:31 PM||#4|
You want [NSData dataWithContentsOfURL:myURL]; Then you can get the [NSData bytes] , and move through the bytes as though they were an array of chars.
Or you could do [NSString stringWithContentsOfURL:encoding:error:] and use string methods to split it up further.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Terminal, add text to the end of all text files in a directory.||Jesse Smith||Mac Basics and Help||2||Feb 22, 2011 03:13 PM|
|creative text file parsing, revisited||dj.mooky||Mac Programming||3||Jul 8, 2009 10:36 PM|
|creative text file parsing methodology? any ideas?||dj.mooky||Mac Programming||12||Jun 30, 2009 01:47 PM|
|Parse Text File||ezkimo||Web Design and Development||9||Feb 22, 2008 09:10 AM|
|Question: Parsing a file with Applescript||iostream.h||Mac Programming||1||May 5, 2005 05:32 AM|
All times are GMT -5. The time now is 10:53 AM.