这是我的代码:
{
FileStream hd = new FileStream(path, FileMode.CreateNew);
BinaryWriter bw = new BinaryWriter(hd);
bw.Write("Tien an uong:");
bw.Write(anuong); //double
bw.Write("\n");
bw.Write("Tien hat:");
bw.Write(hat);//double
bw.Write("\n");
bw.Write("Tong cong tien phai thanh toan:");
bw.Write(s);//double
bw.Close();
hd.Close();
}
这就是输出文件得到的: Tien an uong: jè@ Tien hat: ùA Tong cong tien phai thanh toan: @A
我需要你帮忙!