I use this code to read every line from my file but it only reads (or it only displays the last line of the file). When i open the file in notepad i can see that there are more than one lines. Here's the code that i am using:
using (StreamReader sr = File.OpenText(newPath))
{
String input;
while ((input = sr.ReadLine()) != null)
{
TextBox1.Text = input;
}
File.ReadAllText
.