not intended for multimedia.
Do this (no error checking):
---------------------------------
DATA mydata; // your structure
HANDLE hFile;
DWORD dwBytesRead;
// open the file
hFile = CreateFile("MYDATA.DAT", GENERIC_READ,
0, (LPSECURITY_ATTRIBUTES)NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, (HANDLE)NULL);
// fill in data struct
ReadFile(hFile, &mydata, sizeof(DATA, &dwBytesRead, NULL);
------------------------------------
You can then access your data structure by doing:
mydata.health and mydata.size
Heathen