Expand|Select|Wrap|Line Numbers
- private void btnExport_Click(object sender, EventArgs e)
- {
- string filename;
- filename = DateTime.Now.Date.ToShortDateString();
- filename = filename.Replace("/", "-");
- filename += ".txt";
- TextWriter writer;
- if (File.Exists(filename))
- {
- writer = File.AppendText(filename);
- }
- else
- {
- writer = File.CreateText(filename);
- }
- }
Ideally what I'd like to see in the .txt file is;
<Client>: <txtBackupcontent> <txtAVcontent> <txtOthercontent>
However, I'm stuck as to how to do that.
Any help would be greatly appreciated.