If you add a Textfile to your Resources, than you can get the Content of this Textfile as String via Properties.Resources:
string textFileContent = Properties.Resources.NameOfYourResource
You could also make a Property to access your the Content of your ResourceFile:
public string YourResource
{
get
{
return Properties.Resources.NameOfYourResource
}
}
If you want to read your ResourceFile Line by Line or mabe only the first line:
string text = Properties.Resources.text;
using(TextReader sr = new StringReader(text))
{
var firstline = sr.ReadLine();
Console.WriteLine("FIRSTLINE: " + firstline);
string line;
while ((line = sr.ReadLine()) != null)
{
Console.WriteLine(line);
}
}