Hey so lately i've been trying to move files from one folder to another but errors keep coming up. Both the loacation and destination folders are created, location has few .txt files
Here's what i've tried:
string path = @"C:\TESTmove\path";
string path2 = @"C:\TESTmove\destiny";
if (Directory.Exists (path))
{
foreach (string filename in Directory.GetFiles(path))
{
File.Move (filename, path2);
//Console.WriteLine (filename);
}
}
else
{
Console.WriteLine("Wrong place");
}
and I'm getting this error:
Cannot create a file when that file already exists.