Get text in string builder from text file

Rajni.Shekhar
Posted by Rajni.Shekhar under C# category on | Points: 40 | Views : 2117
StringBuilder sb = new StringBuilder();
using (StreamReader sr = new StreamReader(path)) //path=path of the file
{
sb.Append(sr.ReadToEnd());
}

Comments or Responses

Login to post response