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

مشاهدة النسخة كاملة : How to check status file



C# Programming
10-23-2009, 11:21 PM
Hi all,

I am making a web application project. When the web application is run, the xml file will be always generated in a directory(app_data folder). The new xml file will overwrite the old one. I try to run with 2 browsers at once and one browser is successful and another one gets error and need to be *******.
It is because the xml file is written by one application. So that I need to check the file status first when want to write. How to check the file status?Please include the code as it will very helpful for me. Thanks.

Regards,
Dedy