1 string exportPath1 = "F:\\Upload\\ReadAndWriteFile\\streamreader1.txt";
2 FileStream fs1 = new FileStream(exportPath1, FileMode.OpenOrCreate);
3 byte[] data = new UTF8Encoding().GetBytes("aaaa");
4 fs1.Write(data, 0, data.Length);
5 fs1.Flush();
6 fs1.Close();