I am trying to do this in my application but it is not working.
I am trying to read certain number of characters in a text from a text file stored in the uers HDD, then after reading them read the next block and continue untill it reaches then end. But it has proven to be harder than it seems like.
I have tried the following;
But doesn't work could some body help me please
Code Snippet
Dim StreamRead As System.IO.StreamReader
Dim j As IntegerDim value As String
StreamRead = My.Computer.FileSystem.OpenTextFileReader("C:\Text.txt")
While j <= 251
value = value & StreamRead.Read()
j += 1
End While 'but the Read() is an integer type!! What could i do to only
'read 251 characters from the text