[Haskell-cafe] Basic Binary IO

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Nov 2 02:34:21 EST 2006


Hello Donald,

Thursday, November 2, 2006, 4:31:31 AM, you wrote:
>>    Just an example, like opening file "somefile" and separating
>>    it into something that can be edited in the code (like 8 bit
>>    words) then go to word nr12 and edit the last bit?

> http://haskell.org/haskellwiki/Binary_IO

> For flat lists of bytes, use Data.ByteString, for structured data, try
> NewBinary.


you can also use hGetBuf and pointers machinery


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list