StringBuilder sb = new StringBuilder(); string line; string Temp = " "; if (File.Exists(fileOpen.FileName)) { StreamReader file = null; try { file = new StreamReader(fileOpen.FileName); while ((line = file.ReadLine()) != null) { sb.AppendLine(line); } // textBox1.Text = sb.ToString(); foreach (string lines in File.ReadAllLines(fileOpen.FileName)) { string[] Split = lines.Split(new string[] { " ", "\n", "\r", "\t" }, StringSplitOptions.RemoveEmptyEntries); foreach (string Splits in Split) { Temp = Temp + "\n" + Split; } //show line by line after split MessageBox.Show(Temp, "read by line"); } }