Original Post
using c/c++ under windows, how would one read in and write out variables of varying sizes from a file. i have tried using the fstream class, but it added stuff to the binary file which was not meant to be there. for example, if the file contained the following data in this order, how would it be read and saved? Please provide source code.
char
long
long
char[20]
thanks for any help.