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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -