using System;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
using (TextReader reader = File.OpenText("d:\\test.txt"))
{
char[] ch_arr = new char[6];
reader.ReadBlock(ch_arr, 0, 6);
Console.WriteLine(ch_arr); // Text F
}
}
}
}
/*
run:
Text F
*/