Re: [Haskell-cafe] Re: [Haskell] reading binary files

2006-04-07 Thread Donald Bruce Stewart
akamaus: > Hello, Bulat > > I'm currently working on some kind of program for analysing FAT partitions. > Don't ask why did I chose to implement it in Haskell :) Just for fun. > My program needs to read scattered chunks of binary data from a huge file and > to > do a good amount of deserialisati

[Haskell-cafe] Re: [Haskell] reading binary files

2006-04-07 Thread Dmitry V'yal
Hello, Bulat I'm currently working on some kind of program for analysing FAT partitions. Don't ask why did I chose to implement it in Haskell :) Just for fun. My program needs to read scattered chunks of binary data from a huge file and to do a good amount of deserialisation. I implemented basic

[Haskell-cafe] Re: [Haskell] reading binary files

2006-04-05 Thread Benjamin Franksen
[questions such as this one should go to cafe] On Wednesday 05 April 2006 20:41, minh thu wrote: > 1/ i want to read some binary file (e.g. targa file format : *.tga). > > -- first way : via IOUArray > showInfoHeader1 handle = do > a <- newArray_ (1,8) :: IO (IOUArray Int Word8) > hGetArra