I've got a simple struct (myStruct), with a few char arrays, and I'm trying to write it an array of type myStruct to a file, in order to later be able to retrieve it from that file, back into an array of type myStruct. What would be the best way to go about this? I've experimented a bit with ifstream/ofstream, and a bit with CreateFile, WriteFile, ReadFile, etc.. in winbase.h, and I can't get it to work properly...Any help would be greatly appreciated.