John Baird
Coatesville, Pennsylvania, United States
General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
>>Sorry for wrong suggestion.
>
>No problem, it seems it is also the same one as Al mentioned. This is exactly the process we are doing. But, before going into a Try Catch, I wanted to verify if there could be a more fancy approach.
You can try to open the file for exclusive read :
Stream stream = File.Open(myfileName, FileMode.Open, FileAccess.read, FileShare.None);
if an error you'll receive an ioexception....
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only