Hello there, I found a wayout to check for the end of stream. using (BinaryReader br = new BinaryReader(fs)) { while(fs.Position<fs.Length) { //add your code till it finds the end of the BinaryFile line. } } ...assuming that "fs" is defined as the FileStream in the outer block. Hope this works... Mafaz