this code is stream for read
OpenFileDialog op = new OpenFileDialog();
op.ShowDialog();
Stream stream=File.Open(op.FileName,FileMode.Open);
byte[] bytes=new byte[stream.Length];
stream.Read(bytes,0,10); **//problam is in this line**
MessageBox.Show(System.Text.Encoding.UTF8.GetString(bytes));
This code works, but if I change that zero in signed line in the end MessageBox doesn't show anything.
How to resolve this problem?