G
Guest
Iam using streamwriter class of .net to write in a file. The location of
file is a network drive. Now if for some reason the network is not there
and I execute
sw.close I get a exception ( that's ok).
But later when network comes and I try to delete this file, it says that the
file is being used by a process. How to release the file handle in such a
case.
Thanks,
Mohit
file is a network drive. Now if for some reason the network is not there
and I execute
sw.close I get a exception ( that's ok).
But later when network comes and I try to delete this file, it says that the
file is being used by a process. How to release the file handle in such a
case.
Thanks,
Mohit