c# - Difference between in doing file copy/delete and Move -



c# - Difference between in doing file copy/delete and Move -

what difference between

copying file , deleting using file.copy() , file.delete() moving file using file.move()

in terms of permission required these operations there difference? help much appreciated.

file.move method can used move file 1 path another. method works across disk volumes, , not throw exception if source , destination same.

you cannot utilize move method overwrite existing file. if effort replace file moving file of same name directory, ioexception. to overcome can utilize combination of re-create , delete methods

c# .net file file-io

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -