这两种移动文件的方法有什么不同吗?
System.IO.FileInfo f = new System.IO.FileInfo(@"c:\foo.txt"); f.MoveTo(@"c:\bar.txt"); //vs System.IO.File.Move(@"c:\foo.txt", @"c:\bar.txt");
https://stackoverflow.com/questions/2733288
相似问题