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 usingfile.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
Post a Comment