I am using Winforms, and I am trying to copy a file from one location to another. If a file with the same name is already there, I want to overwrite it. But I get an error like
have you tried File.Copy(src, dest, true). This might help overwriting the existing file.
File.Copy(src, dest, true)