Hello,
I have following foreach-loop:
using System.IO;
//...
if (Directory.Exists(path))
{
foreach(string strFile in Directory.GetFiles(path, "*.txt"))
{
// do something, possibly delete the file named strFile
}
}
Could there be side effects when deleting files in the directory that is currently used for the foreach-loop?