文件流操作,报“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))
 {
 }
阅读更多
个人分类: ASP.NET
想对作者说点什么? 我来说一句

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

关闭
关闭
关闭