How do you write to end of files opened with FILE_FLAG_NO_BUFFERING?
Posted on 2003-03-12
Files opened with FiLE_FLAG_NO_BUFFERING need to be written in chunks that are multiples of the sector size. I have to write a huge file, but the data size is not a multiple of the sector size. How can I write the last handful of bytes? I've looked into write a full block and then truncating the file, but I don't see how to do that either since SetFilePointer requires that you set the file pointer to sector boundaries.