File Add Content - CSharp System.IO

CSharp examples for System.IO:Text File

Description

File Add Content

Demo Code


using System.Data;
using System.Text;
using System.IO;/*from  w  ww  .j  a  v  a  2 s  .  c o  m*/
using System;

public class Main{

        public static void FileAdd(string Path, string strings)
        {
            StreamWriter sw = File.AppendText(Path);
            sw.Write(strings);
            sw.Flush();
            sw.Close();
        }
}

Related Tutorials