Well i have this code:
vb Code:
  1. Dim File As New IO.FileStream(OpenFile.FileName, IO.FileMode.Open)
  2. Dim BytesComentario(41) As Byte
  3. File.Read(BytesComentario, 11, 42)

When I run the code OpenFile.FileName is not null, and the file that it points to exists. And this file lenth is about 150 bytes.

Still I get this error on the third line:
"Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection."

And I really can't understand why, because i see nothing wrong.