open file??

  • Thread starter Thread starter bill yeager
  • Start date Start date
B

bill yeager

Is there any way to tell if a file is "Open"? I tried
looking into some properties on the system.io class, but
couldn't seem to find anything about that.......

Thanks,

Bill
 
I don't know of any native way to find out if it's open
or not per se... but you can try to open it and wrap just
that line of code in an exception handler trapping
System.IOException.

That should get you what you need.

Good Luck,

Bill
 
Back
Top