string sFileName = "C:\\NMCC\\MWD\\data20041203134748.mwd"; // Read the file using the stream reader to get the length of the file System.IO.StreamReader oReader = System.IO.File.OpenText(sFileName); string lcString = oReader.ReadToEnd(); oReader.Close(); // Use the length to the string to determine size of byte[] System.Byte[] myByte = new System.Byte[lcString.Length]; System.IO.FileStream fs = new System.IO.FileStream(sFileName,System.IO.FileMode.Open, System.IO.FileAccess.Read); System.IO.BinaryReader r = new System.IO.BinaryReader(fs); // ReadByte() in a for loop for (int i = 0 ; i < lcString.Length; i++) { myByte[i] = r.ReadByte(); }I know I can use the ReadBytes() method to get rid of the for loop but I would still need a way to find out how many bytes to read.