#region
using System.IO;
#endregion
namespace CSFrameworkV5.Common
{
///
/// 文件操作相关的公共类
///
public class FileIO
{
///
/// 检查文件是否被独占打开
///
///
///
public static bool IsOpen(string filePath)
{
try
{
var fs = File.Open(filePath, FileMode.Open, FileAccess.Write);
fs.Close();
return false;
}
catch
{
return true;
}
}
}
}