This is a continuation of your earlier question:
Making file in PC, but broken records[
^]. Writing a fixed length structure should just work (assuming you do it correctly). And reading it back the same. I already suggested that since this is a binary file, the addition of the CR?F sequence at the end of each resord serves no purpose. All you need is something like:
fwrite(&logRecord, sizeof(logRecord), 1, handle);
fread(&logRecord, sizeof(logRecord), 1, handle);
Ensure that you call
fclose
after writing all records.