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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top