S
Silan
In our application we store blocks of data in a file, and
keep the file offset of each block in memory. Then we
update the data later using the file offset. S0metimes we
found ourselves writing to wrong location and thus
corrupting the file.
Is this approach (keeping an offset pointer and later re-
access the same data with this pointer) a valid approach?
Can Windows secretly change the relevant offset of data
in the file in the background, for example, in a de-
fragmentation process?
keep the file offset of each block in memory. Then we
update the data later using the file offset. S0metimes we
found ourselves writing to wrong location and thus
corrupting the file.
Is this approach (keeping an offset pointer and later re-
access the same data with this pointer) a valid approach?
Can Windows secretly change the relevant offset of data
in the file in the background, for example, in a de-
fragmentation process?