G
Guest
The code below hung during execution at "File.Delete(testFile)"...
if (File.Exists(testFile))
{
Console.WriteLine("Before jumping off the cliff...");
File.Delete(testFile);
}
Console.WriteLine("Arrived here...");
Though "Before jumping off the cliff..." was printed out, "Arrived here..."
was never printed out.
In addition, I checked the directory and confirmed that the file "TestFile"
was gone. Not sure if it was deleted by this File.Delete or some other code.
Does anyone know of the issue?
Thanks!
if (File.Exists(testFile))
{
Console.WriteLine("Before jumping off the cliff...");
File.Delete(testFile);
}
Console.WriteLine("Arrived here...");
Though "Before jumping off the cliff..." was printed out, "Arrived here..."
was never printed out.
In addition, I checked the directory and confirmed that the file "TestFile"
was gone. Not sure if it was deleted by this File.Delete or some other code.
Does anyone know of the issue?
Thanks!