none
excel locking files RRS feed

  • Question

  • Hello,

    I have written an app that saves data to a .csv. If I open the .csv file in Excel, I can no longer acces the same .csv file from my application. This is ok, but is there some way of knowing before I try to access it that it is locked by Excel. Obviously I know its locked because an exception is generated. I was jsut wondering how I could tell if it was locked or not before I try to access. If not I can always just use the exception that is thrown.

    Thanks

    -David P

    Thursday, November 26, 2009 9:01 AM