NSScanner vs. componentsSeparatedByString
问题 I have a large text file (about 10 MB). In the text file there are values like (without the empty lines between the rows, I couldn't format it here properly): ;string1;stringValue1; ;string2;stringValue2; ;string3;stringValue3; ;string4;stringValue4; I'm parsing all the 'stringX' values to an Array and the 'stringValueX' to another string, using a pretty ugly solution: words = [rawText componentsSeparatedByString:@";"]; NSEnumerator *word = [words objectEnumerator]; while(tmpWord = [word