使用以下代码,我试图覆盖文件,如果它存在.Currenly它抛出IOException.我该如何解决这个问题?
File.Copy(filePath, newPath);
.net c#
.net ×1
c# ×1