I have a problem with reading text from file line by line.
System.IO.StreamReader file = new System.IO.StreamReader("ais.txt");
while ((line = file.ReadLine()) != null)
{
listBox1.Items.Add(line);
}
This code only read last line from file and display in listbox. How can I read line-by-line?
For example: read a line, wait 1 second, read another line, wait 1 second...ect.?