Using the following code, I am trying to overwrite a file if it exists. Currenly it throws IOException. How can I fix this problem?
File.Copy(filePath, newPa
Then call the overload
File.Copy(filePath, newPath, true);