Get the endian right
Open file and deserialize data