Z
zoneal
Size of text file to read and display can be larger than 10MB.
Since I must ignore certain input text lines the code I'm using is:
FileOpen(1, OpenFileDialog1.FileName, OpenMode.Input)
'Read text file and load into LineOfText
Do Until EOF(1) 'read lines from file
LineOfText = LineInput(1)
'Ignore lines =< 3 characters long
If Len(LineOfText) > 3 Then
'add each line to the RichTextBox1 variable
RichTextBox1.Text = RichTextBox1.Text & LineOfText & vbCrLf 'display
file
End If
Loop
Alternatives to using the code:
RichTextBox1.Text = RichTextBox1.Text & LineOfText & vbCrLf
may be required since I suspect it may be the cause - not sure.
Thank you for any and all suggestions.
Since I must ignore certain input text lines the code I'm using is:
FileOpen(1, OpenFileDialog1.FileName, OpenMode.Input)
'Read text file and load into LineOfText
Do Until EOF(1) 'read lines from file
LineOfText = LineInput(1)
'Ignore lines =< 3 characters long
If Len(LineOfText) > 3 Then
'add each line to the RichTextBox1 variable
RichTextBox1.Text = RichTextBox1.Text & LineOfText & vbCrLf 'display
file
End If
Loop
Alternatives to using the code:
RichTextBox1.Text = RichTextBox1.Text & LineOfText & vbCrLf
may be required since I suspect it may be the cause - not sure.
Thank you for any and all suggestions.