Write string to a text file

image_pdfimage_print
   
 

using System;
using System.Data;
using System.IO;



class Class1{
  static void Main(string[] args){      
      StreamWriter sw = new StreamWriter("practice.txt");
        sw.Write("www.kutayzorlu.com/java2s/com");
        sw.Close();
    }
}

           
         
     


This entry was posted in File Stream. Bookmark the permalink.