|
File structures is not something one can just explain in a simple little posting here, your best bet would be to get a book, or use google to look up reading and writing to text and than binary files.
Binary files are particularly complex too since you have to take MANY factors into the structure of the data on the file such as: Byte Ordering (Big-Endian vs. Little-Endian), and structure padding (size of padding when writing/reading entire structures from file). This is something you will likely need to do a fair amount of reading on to understand at a competant level.
|