[Haskell-cafe] How to cut a file effciently?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Wed Apr 8 01:20:17 EDT 2009

  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).

More information about the Haskell-Cafe mailing list