摘要:
private void btnSe_Click(object sender, EventArgs e) { computer com1=new computer{ Color="black",price="4000" }; FileStream fs = new FileStream(@"D:\hhh.txt", FileMode.Append); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(fs, com1); fs.Flush(); fs.Close(); }
阅读全文