I have a problem with deleting the file in C#
In my code
if (System.IO.File.Exists(destination))
{
System.IO.File.Delete(file);
}
System.IO.File.Copy(source,destination);
System.IO.File.Delete(source);
In my code the problem is
destination file already exist when i create a new file it will copied into destination folder with the name as destination
problem occurred when file size is big..
problem is file delete is not completed and file copy is start......
:(....
sorry for my english....
Any Help will sufficient....
Thanks..