文件流操作,报“because it is being used by another process. ”错误解决

文件流操作,报“because it is being used by another process. ”错误解决

FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);

将这句替换成:

using( FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read))
 {
 }
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页