Dumps the file to a byte array in C