日月同辉山川同在 2021-04-24 10:44 采纳率: 33.3%
浏览 353

使用streamWriter写文件时报错线程被占用

Unhandled exception. System.IO.IOException: The process cannot access the file 'H:\testDirectory\d1\d2\test.text' because it is being used by another process.

  • 写回答

1条回答 默认 最新

  • CrisYoung 2021-04-24 11:03
    关注

    因为它正在被别的线程读写(比如你把它打开了)

    评论

报告相同问题?