I have a function which opens a file located on a local network. I intend to rewrite all the contents of this file each time opened. This application is the only writer to the file.
fileHandle = OpenFile(fileName, VAL_WRITE_ONLY, VAL_TRUNCATE, VAL_ASCII);
WriteLine(fileHandle, "some text", -1);
CloseFile(fileHandle);
On one of my stations, I regularly see the OpenFile fail with an error code 5, "File exists".
This is some sort of permissions issue?