Create Text- Append Text Method C# with Example
using System.IO; using System; namespace CSharpFilesAndStreams { class Program { static void Main(string[] args) { FileInfo f6 = new FileInfo(@"C:\Test6.txt"); using(StreamWriter swriter = f6.CreateText()) { // Use the StreamWriter object... } FileInfo f7 = new FileInfo(@"C:\FinalTest.txt"); using(StreamWriter swriterAppend = f7.AppendText()) { // Use the StreamWriter object... } } } }