Hi,
Solution depends on that what you want to do with text. You can read file line by line and extract specific keyword from line or you can read entire text from file to a variable and them parse it.
If file is large text, better solution will be read line by line, but as i said, it depends on your demands.
Reading text files is simple:
using (var streamReader = new StreamReader(@"C:\file.txt"))
{
while (!streamReader.EndOfStream)
{
var line = streamReader.ReadLine();
}
var allText = streamReader.ReadToEnd();
}
Hope it helps you.