
8 Apr
2009
8 Apr
'09
5:52 a.m.
On Wed, Apr 8, 2009 at 7:20 AM, Magicloud Magiclouds
Hi, Let us say I have a text file of a million lines, and I want to cut it into smaller (10K lines) ones. How to do this? I have tried a few ways, none I think is lazy (I mean not reading the file all at the start).
I would just seek to the approximate chunk boundaries (10k, 20k, etc) and the read forward until hitting a newline. Cheers, Johan