readFile package:system-fileio

Read in the entire content of a binary file. This computation throws IOError on failure. See “Classifying I/O errors” in the System.IO.Error documentation for information on why the failure occured.