Your software are unable to guarantee that An additional approach on the pc has not modified the file. It is what Eric Lippert refers to as an exogenous exception. You can not stay away from it by checking with the file's existence beforehand.The w+ mode However also permits reading through and creating but it really truncates the file (if no these