1、写文件
using (FileStream fs = new FileStream(@"C:\Desktop\Test.txt", FileMode.OpenOrCreate))
{
StreamWriter sw = new StreamWriter(fs);
if (Bytes.Length==0)
{
sw.WriteLine("null");
}
sw.WriteLine("1");
sw.Close();
}
2、使用MessageBox弹出提示
(1)首先添加Forms引用
(2)声明命名空间