Adrian Neumann wrote:
For example, the internet states, that the magic number, that puts 'BM' in the first two bytes of the file is 19778. But when Iput (19778::Word16)I get 'MB' instead.
Just use putWord16le instead. There exist endian-specific versions of all of the word-level get and put functions.
<b
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
