K
Kimmo Laine
Hi!
Is there a way to check if file is already open/used by another process?
I know that i can do something like this to check it
try {
StreamWriter sw = new StreamWriter(filename);
sw.Close();
} catch (IOException) {
// File is already open...
}
but I would rather use some method then try to open the file in write mode.
thx
Kimmo
Is there a way to check if file is already open/used by another process?
I know that i can do something like this to check it
try {
StreamWriter sw = new StreamWriter(filename);
sw.Close();
} catch (IOException) {
// File is already open...
}
but I would rather use some method then try to open the file in write mode.
thx
Kimmo