If you are not writing a disk device driver, you cannot guarantee that there will be no cache or processing with your record.
The C time library provides fflush(FILE *)for this. Windows has FlushFileBuffers, as well as a flag that you can pass in CreateFile( FILE_FLAG_NO_BUFFERING) (which itself adds restrictions on what you can do).
, . . , , , .
, (. ReplaceFile Transactional NTFS Windows).