Reads the entire content of a file into a byte array.
A byte array containing the entire content of the file.
The path to the file to be read.
If an I/O error occurs while reading the file.