09-15-2020 04:25 PM
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?
10-13-2020 08:36 AM
UPDATE
This same station has started getting other network-related issues, so I replaced the PC. Problem has gone away.