Re: [Haskell-cafe] Efficient way to edit a file

2006-06-02 Thread David Roundy
On Fri, Jun 02, 2006 at 12:34:51PM +1000, Donald Bruce Stewart wrote: dons: briqueabraque: Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of

[Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread MaurĂ­cio
Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? Thanks, MaurĂ­cio ___ Haskell-Cafe

Re: [Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread Donald Bruce Stewart
briqueabraque: Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? I'd think maybe a lazy bytestring would be ok. Something like:

Re: [Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread Donald Bruce Stewart
dons: briqueabraque: Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? I'd think maybe a lazy bytestring would be ok.

Re: [Haskell-cafe] Efficient way to edit a file

2006-06-01 Thread Donald Bruce Stewart
dons: briqueabraque: Hi, I need to edit big text files (5 to 500 Mb). But I just need to change one or two small lines, and save it. What is the best way to do that in Haskell, without creating copies of the whole files? Thinking further, since you want to avoid copying on