A
Andrew
I have a problem with System.IO.FileInfo.
FileInfo fi = new FileInfo("testFile.txt");
Logger.Write(String.Format("isExist: {0}", fi.Exist() ));
if (fi.Exist())
fi.Delete();
The value of fi.Exist is always True, but sometimes I cannot delete the
textfile. I am not getting any errors, but my service app just stops by
itself.
Why is this ?? Is it the textfile is being used by another process ? But I
am not getting any error messages at all.
Any help is appreciated.
Thanks in advance
regards,
Andrew
FileInfo fi = new FileInfo("testFile.txt");
Logger.Write(String.Format("isExist: {0}", fi.Exist() ));
if (fi.Exist())
fi.Delete();
The value of fi.Exist is always True, but sometimes I cannot delete the
textfile. I am not getting any errors, but my service app just stops by
itself.
Why is this ?? Is it the textfile is being used by another process ? But I
am not getting any error messages at all.
Any help is appreciated.
Thanks in advance
regards,
Andrew