เราสามารถเขียนข้อมูลเพิ่มเข้าสู่เท็กซ์ไฟล์ ได้โดยไม่ต้องทับข้อมูลเก่า คือของเก่าก็ยังอยู่ ของใหม่ก็ถูกเพิ่มต่อท้ายเข้าไป โค้ดเป็นดังนี้   public  class  FileClass {     public  static  void  Main()     {         AppendToFile();     }     static  void  AppendToFile()     {         StreamWriter sw;         sw= File.AppendText( "C:\\MyTextFile.txt" );         sw.WriteLine( "This Line Is Appended" );         sw.Close();          Console .WriteLine( "Text Appended Successfully" );     } }