Re: Best Practice for reading a string with NSScanner

2009-04-04 Thread Gustavo Pizano
Hello, Im gonna check what Quencey Morris, suggested, Im gonna see how to stop just before the line break, and analyze the data I gather, I think NSScanner provides me a quick way to scan the file lines, its huge, so checking line by line it will take longer. When reading the documentati

RE: Best Practice for reading a string with NSScanner

2009-04-04 Thread Kirk Kerekes
It looks like you have tabular data to deal with, like punch cards. That means that you can assume a fixed character position for the beginning of each column in the table. And your code can infer those positions the same way you would -- by looking at the source file. Or you can just manua

Re: Best Practice for reading a string with NSScanner

2009-04-03 Thread Quincey Morris
On Apr 3, 2009, at 12:08, Gustavo Pizano wrote: I have a text file, which contains bunch of lines like this ones : (sorry about the identation) apphelp.dll5.1.2600.5512 Application Compatibility Client Library appmgmts.dll 5.1.2600.5512