FileInfo.MoveTo() vs File.Move()
Posted
by Eric
on Stack Overflow
See other posts from Stack Overflow
or by Eric
Published on 2010-04-28T21:32:43Z
Indexed on
2010/04/28
21:37 UTC
Read the original article
Hit count: 240
Is there any difference between these two methods of moving a file?
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");
© Stack Overflow or respective owner