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);
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?
This same station has started getting other network-related issues, so I replaced the PC. Problem has gone away.