Write string to a text file
using System; using System.Data; using System.IO; class Class1{ static void Main(string[] args){ StreamWriter sw = new StreamWriter("practice.txt"); sw.Write("www.java2s.com"); sw.Close(); } }