Reading/writing ints and floats from/to a binary file.