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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -