Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C#の別のプロセスで使用されているファイルに書き込むにはどうすればよいですか?
を使用してファイルを読み取ることができますFileShare.ReadWriteが、FileAccess.Read. 誰にも解決策がありますか?
FileShare.ReadWrite
FileAccess.Read
他のプロセスがファイルを書き込みロックしている場合、他のプロセスのハンドルを閉じたり強制終了したりしない限り、できることはあまりありません。
ファイルの内容を別のストリームに読み込む必要があります。そうすると、ファイルが解放されます。