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");

        char[]  MyCharArray  =  new  char[100];

        for  (int  i  =  0;  i  <  99;  i++)
        {
            MyCharArray[i]  =  (char)i;
        }

        MyStreamWriter.Write(MyCharArray,  25,  30);


        MyStreamWriter.Close();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» StreamWriter