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