using System;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
using (TextReader reader = File.OpenText("d:\\test.txt"))
{
string text = reader.ReadToEnd();
Console.WriteLine(text.Length); // 60
}
}
}
}
/*
run:
60
*/