Reading/Writing Binary Data in Haskell

Wolfgang Jeltsch wolfgang@jeltsch.net
Wed, 9 Jul 2003 17:32:45 +0200


On Wednesday, 2003-07-09, 15:16, CEST, Glynn Clements wrote:
> [...]

> Both GHC and Hugs provide openFileEx, which allows files to be read in
> binary mode (without EOL/EOF translations).

So we have portable binary I/O, don't we?

By the way, does one still read characters rather than bytes even if using 
openFileEx? Is it guaranteed that one character corresponds to one byte when 
using openFileEx?

Wolfgang