I need to swap 2 files with each other C# -


i'm trying swap 2 files each other. i'm trying this, isn't working. file replacing backup file not creating. have other solution please?

file.replace(newlocation,defualtsource, newlocation); 

file.move("file1.txt", "temp.txt"); file.move("file2.txt", "file1.txt"); file.move("temp.txt", "file2.txt"); 

why replace should not work, however, not get. sure using right?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -