There are many different ways that binary data can be read/written to files. When you try to read standard file formats directly, such as GIF, this can become a challenge. This article presents a method for reading and writing all types of binary data. Support is given for such things as little endian, big endian, int sizes and more.