This is your C# code in the form of VB.
My problem is , It not return multiple line from text file.
Because, In Vb , How Can I compare NULL in while Condition ?
Reply your response to <Removed> also...
VB.NET
Dim input As String = ""
Dim read As StreamReader
read = File.OpenText("textfile.txt")
While ((input = read.ReadLine) <> False)
RichTextBox1.AppendText(input)
End While
read.Close()
use the stream reader in reading data from textfile
this is a c# code,if you are using vb.net,just try to understand and convert this code to vb.net...
using system.io;
streamreader read= file.opentext("sample.txt");
string input=null;
whiel((input=read.readline)!=null)
{
richtextbox.appendtext(input);
}
read.close();
this code can read multi line data in the text file
enjoy coding,hope this can help you