日期:2014-05-17 浏览次数:20709 次
if (!(File.Exists(filePath1)) || !(File.Exists(filePath2)))
{
FileStream fs1 = new FileStream(filePath1, FileMode.Create);
FileStream fs2 = new FileStream(filePath2, FileMode.Create);
fs1.Close();
fs2.Close();
}
FileStream fw1 = new FileStream(filePath1, FileMode.Open, FileAccess.Write);
BinaryWriter bw1 = new BinaryWriter(fw1);
FileStream fr1 = new FileStream(filePath1, FileMode.Open, FileAccess.Read);
BinaryReader br1 = new BinaryReader(fr1);
if (br1.BaseStream.Position==br1.BaseStream.Length)
....
....