This question already has an answer here:
- How can I read a file even when getting an “in use by another process” exception? 4 answers
hi I have a program that log some data in text file in specific path.(log.txt) I can open the file (log.txt) with notepad and read what is in it.
now I'm writing a program to read log.txt but I get the exception "The process cannot access the file 'log.txt' because it is being used by another process."
what should I do?