No changes to the code were made, but suddenly File.Exists(path) started returning true even though there was no file there. (and no spaces in the file name.) It appears to be related to changes in network configuration.
This exception/catch fixes the result to false like it should be, but is too slow (and a poor practice.)
Any ideas?
Thanks,
string path = machineName + Order; result = File.Exists(path); if (result == true) { try { string temp = File.ReadAllText(path); } catch (Exception) { result = false; } }