any one can suggest me what is the Easiest way.
StringBuilder fileText = new StringBuilder();
using (FileStream fs = File.Open(FilePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
using (BufferedStream bs = new BufferedStream(fs))
using (StreamReader sr = new StreamReader(bs))
{
string line = "";
txtReader.Text = "";
while ((line = sr.ReadLine()) != null)
{
//fileText.AppendLine(line);
txtReader.Text += line.ToString();
}
}
txtReader.Text = fileText.ToString();