EDN Admin
Well-known member
Hi,
Im trying to open a file using the System.IO.File.ReadAllLines() method.
But when I try to run it, I get the following error :
System.IO.IOException :
The process cannot access the file c:... because it is being used by another process.
Ok, but i just need to read its contents, I dont need to modify it. Is there a way I can open it in read only mode even if its locked by another process. After all, I can open it with notepad, so there must be a way to read its content!
Thanks
Daniel
View the full article
Im trying to open a file using the System.IO.File.ReadAllLines() method.
But when I try to run it, I get the following error :
System.IO.IOException :
The process cannot access the file c:... because it is being used by another process.
Ok, but i just need to read its contents, I dont need to modify it. Is there a way I can open it in read only mode even if its locked by another process. After all, I can open it with notepad, so there must be a way to read its content!
Thanks
Daniel
View the full article