[Haskell-cafe] How to deal with huge text file?
Magicloud Magiclouds
magicloud.magiclouds at gmail.com
Mon May 24 22:02:06 EDT 2010
U is for UTF8 module. And I will try the modules you mentioned.
Although I thought Haskell IO is lazy enough....
On Tue, May 25, 2010 at 9:46 AM, Ivan Miljenovic
<ivan.miljenovic at gmail.com> wrote:
> 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