IO File.copy 实现文件的复制
如图:
代码如下:
 View Code
View Code   string path = @"c:\temp\MyTest.txt";
string pathCopy = @"c:\temp\MyTestCopy.txt";
if (File.Exists(path))
{
File.Copy(path, pathCopy, true);
File.Delete(path);
}
string pathCopy = @"c:\temp\MyTestCopy.txt";
if (File.Exists(path))
{
File.Copy(path, pathCopy, true);
File.Delete(path);
}
 
                    
                 

 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号