Access the file in read mode so that you will not get this error.
Try this solution
How do I open an already opened file with a .net StreamReader?
solved C#: How to read a file that’s in use by another process
Access the file in read mode so that you will not get this error.
Try this solution
How do I open an already opened file with a .net StreamReader?
solved C#: How to read a file that’s in use by another process