المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Acces to file used by other application



C# Programming
01-05-2010, 08:21 AM
Hello everybody,

I have a file where some application is storing some values. I want to access to this file in read mode but when I try to open the file I have always the message that the process can't acces the file because it is being used by other application.

If I try to open this file with Microsoft excel I have an alert that says that the file is user by other application but I am allowed to open the file in read mode only.

How can I access the file with .net and advoid the exception if it is possible?

Thanks in advance