Hi, I am scratching my head here and looking for the right code. I am downloading a text file from my server. The string looks like this.
It is a link to a file and a number that represents DATE HOUR MINUTE. I have a white space that separates the 2 in the string. I am looking at reading in the first part and have it be the key and the number be the value in an NSMUtableDictionary.
I can use the NSScanner and scan to the white space. But then I need to scan the next part from the number (which is a string) to the newline \n. I have about 200 lines that I need to scan.
Is there a better way to do this or is NSScanner the right tool for this job?
mysite/somefolder/myfile.txt 151102
It is a link to a file and a number that represents DATE HOUR MINUTE. I have a white space that separates the 2 in the string. I am looking at reading in the first part and have it be the key and the number be the value in an NSMUtableDictionary.
I can use the NSScanner and scan to the white space. But then I need to scan the next part from the number (which is a string) to the newline \n. I have about 200 lines that I need to scan.
Is there a better way to do this or is NSScanner the right tool for this job?