Re: Need help parsing a large text file one line at a time

2008-06-09 Thread Jeff LaMarche
On Jun 9, 2008, at 2:04 PM, Abel J. Almeida wrote: I need help parsing a large text file. I need to examine the file one line at a time. It's a 128MB text file. I used the stringWithContentsOfFile method from the NSString class, but the file is too large and it doesn't seem very optimized to

Re: Need help parsing a large text file one line at a time

2008-06-09 Thread Jens Alfke
You'd need to open the file using NSStream, NSFileHandle or regular c stdio, then read chunks out of it and break them into lines. --Jens // via iPhone On Jun 9, 2008, at 2:04 PM, "Abel J. Almeida" <[EMAIL PROTECTED] > wrote: I need help parsing a large text file. I need to examin

Need help parsing a large text file one line at a time

2008-06-09 Thread Abel J. Almeida
I need help parsing a large text file. I need to examine the file one line at a time. It's a 128MB text file. I used the stringWithContentsOfFile method from the NSString class, but the file is too large and it doesn't seem very optimized to me, because what I need is parse one line at a time