using System; using System.IO; namespace ConsoleApplication57 { class Class1 { static void Main(string[] args) { BinaryReader br = new BinaryReader(File.OpenRead(@"c:\test.txt")); byte[] b = br.ReadBytes(10000); br.Close(); Console.WriteLine(b.Length); } } }