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
File.Copy(filePath, newPath, bool overwrite)
does it.