Using StreamWriter : StreamWriter : File Directory Stream C# Examples


C# Examples » File Directory Stream » StreamWriter »

 

Using StreamWriter









    
using  System;
using  System.IO;

public  class  MainClass
{
    static  void  Main(string[]  args)
    {
        StreamWriter  MyStreamWriter  =  new  StreamWriter(@"c:\Testing.txt");

        //Writes  single  characters  to  a  stream
        char  MyChar  =  'A';

        MyStreamWriter.Write(MyChar);

        MyStreamWriter.Close();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» StreamWriter