在多个线程对同一,两个文件进行操作时经常出现这样的错误:
The process cannot access the file , because it is being used by another proc
ess.
是否应该在构造FileStream对象前先进行判断,判断文件是否已经被其他进程占用?应该
如何判断?