A
ataanis
Hi,
Can anybody tell me , why if I change the second value in the read()
function, I get an error message, I'm dealing here with a file, that
has at least 240 caracters per line
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem2.Click
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Dim sr As New
System.IO.StreamReader(OpenFileDialog1.FileName)
Dim line As String
line = sr.ReadLine()
Dim b(224) As Char
sr.Read(b, 0, 224)
MessageBox.Show(b)
sr.Close()
End If
End Sub
BASICALLY , When I change the 0 to something else, it doesn't work ,
why?
Can anybody tell me , why if I change the second value in the read()
function, I get an error message, I'm dealing here with a file, that
has at least 240 caracters per line
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem2.Click
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Dim sr As New
System.IO.StreamReader(OpenFileDialog1.FileName)
Dim line As String
line = sr.ReadLine()
Dim b(224) As Char
sr.Read(b, 0, 224)
MessageBox.Show(b)
sr.Close()
End If
End Sub
BASICALLY , When I change the 0 to something else, it doesn't work ,
why?