Hi everyone,
It might sound simple but I am having nightmares with this function
What is the best way to delete a file without the machine complaining that i cannot acces the file because it is in use by another process? Is this a bug in the .net framework? Is it my crappy code? Is there a workaround?
inputfile.Close();
File.Delete(dir + "\\" + Files[j].ToString());
Thanks in advance.