openBinaryFile -package:file-io
The computation
openBinaryFile path mode returns a
file handle that can be used to interact with the binary file.
This is different from
openFile as in that it does not use any
file encoding.
Like
openFile, but open the file in binary mode. On Windows,
reading a file in text mode (which is the default) will translate CRLF
to LF, and writing will translate LF to CRLF. This is usually what you
want with text files. With binary files this is undesirable; also, as
usual under Microsoft operating systems, text mode treats control-Z as
EOF. Binary mode turns off all special treatment of end-of-line and
end-of-file characters. (See also
hSetBinaryMode.)
Like
openFile, but open the file in binary mode
See
hSetBinaryMode for the differences between binary and text
mode.
Like openBinaryFile in base package but using Path instead of
FilePath.