private void SaveB_Click(object sender, System.EventArgs e)
{
string FormData=GetData();
string f="CommLog\\"+DateTime.Now.ToShortDateString()+".txt";
f=f.Replace("/","_");
MessageBox.Show(FormData);
output=new FileStream(f, FileMode.OpenOrCreate, FileAccess.ReadWrite);
writeIt.Serialize(output, FormData);
}
Why do I get a whole bunch of silly characters in my text file when I save it to disk?
{
string FormData=GetData();
string f="CommLog\\"+DateTime.Now.ToShortDateString()+".txt";
f=f.Replace("/","_");
MessageBox.Show(FormData);
output=new FileStream(f, FileMode.OpenOrCreate, FileAccess.ReadWrite);
writeIt.Serialize(output, FormData);
}
Why do I get a whole bunch of silly characters in my text file when I save it to disk?