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, newPath);
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, newPath);