赞
踩
今天使用File.Create("dddd.txt");后,打开这个文件时报The Process cannot access the file because it is being used by another process的异常。在网上找到解决方法如下:
File.Create("dddd").Close();
如果不Close(),那么这个文件一直被创建进程占着,直到创建进程被关闭。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。