|
-
June 24th, 2002, 12:56 AM
#1
Writing/reading struct arrays
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|