I am using this code
string location1 = textBox2.Text; byte[] bytes = File.ReadAllBytes(location1); string text = (Convert.ToBase64S
Depending on the file structure, it might be easier for you to use a StreamReader which exposes a ReadLine method.
ReadLine
using(var sr = new StreamReader(File.Open(textBox2.Text, FileMode.Open)) { while (sr.Peek() >= 0) { Console.WriteLine(sr.ReadLine()); } }