hey....i got some problem in ReadLines method
string filePath = @"c:\Users\Fish\Desktop\fyp-coding\Data.txt";
string line;
if (File.Exists(filePath))
{
StreamReader file = null;
try
{
file = new StreamReader(filePath);
while ((line= file.ReadLine())!= null)
{
textBox7.Text = line;
}
}
finally
{
if (file != null)
file.Close();
}
}
When i use this coding...it only show the last line to me. I want show the previous line, how to do it?