Using StringReader : StringReader : String C# Examples


C# Examples » String » StringReader »

 

Using StringReader









    
using  System;
using  System.IO;

public  class  MainClass
{
    static  void  Main(string[]  args)
    {
        String  MyString  =  "Hello  World";

        char[]  MyChar  =  new  char[12];

        StringReader  MyStringReader  =  new  StringReader(MyString);

        MyStringReader.Read(MyChar,  0,  5);

        Console.WriteLine(MyChar);

        MyStringReader.Close();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» StringReader