开发者

Get around 'process cannot access file, being used by another process' error?

开发者 https://www.devze.com 2023-03-20 16:13 出处:网络
I\'m trying to access a file that is being accessed by another process, and it\'s raising an IOException. This same process, spawns my process. Is there a way to get around this error?

I'm trying to access a file that is being accessed by another process, and it's raising an IOException. This same process, spawns my process. Is there a way to get around this error?

This is a C# application.

Edit

On their side I don't know. On mine:

System.IO开发者_开发技巧.StreamReader file = new System.IO.StreamReader("log.txt");
0

精彩评论

暂无评论...
验证码 换一张
取 消