How to read data from NSFileHandle line by line? の DDFileReaderを使用する場合 大きなファイル (約 37M) を読み込むと、メモリ使用量がどんどん増えていきます。
DDFileReader * reader = [[DDFileReader alloc] initWithFilePath:[[NSBundle mainBundle] pathForResource:@"tb_sentence" ofType:@"sql"]];
NSString * line = nil;
while ((line = [reader readLine]))
{
NSLog(@"read line: %@", line);
}
[reader release];