C#C
C#11mo ago
Erky

How to overwrite a file that is used by another process?

I know which process is locking it, its a .net host instance, but I still want to overwrite my .log file (i want to clear it, when i press a button).

I keep getting
System.IO.IOException: The process cannot access the file
Was this page helpful?