© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
12mo ago
•
9 replies
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
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ "cant open file due to it being used by another process"
C
C# / help
3y ago
Access file that is being used by another application using FileStream
C
C# / help
4y ago
Cannot access file because it's being used by another process
C
C# / help
3y ago