I'm trying to append a CRC to a file. However, there is one problem (as always ). The file is already open so I can't write to it.
Let me explain what i'm trying:
I'm opening the same file as executed and read it's contents into a buffer. Then I calculate the CRC over this buffer and append it to the end. The next thing I want to do is rewrite the file with the CRC information at the end. (Yes it will still execute, i've tested it by writing the buffer to a new file with another name)
Is there a way to make the OS (w2k in this case) think the file isn't opened to be able to rewrite it?