[Haskell-cafe] How to deal with huge text file?
Ivan Miljenovic
ivan.miljenovic at gmail.com
Mon May 24 21:46:06 EDT 2010
On 25 May 2010 11:41, Magicloud Magiclouds
<magicloud.magiclouds at gmail.com> wrote:
> Hi,
> I have a file including some operation logs, in the format of the
> following. And I have some code to analyze it. Well, it ate all my
> memories.
> ---
> log:
> Log for item A
> ===========
> 09:10 read accountA
> 09:20 read accountB
>
> Log for item B
> ....
> ---
> code:
> file <- U.readFile filename
Which module have you imported there with the `U'?
For large text files, you probably want to use either lazy Bytestrings
or lazy Text values.
--
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com
More information about the Haskell-Cafe
mailing list