public static string LoadTextFile(string textFileName, int stackIndex = 2)
{
Assembly executingAssembly;
string location;
GetLocation(textFileName, stackIndex, out executingAssembly, out location);
using (var stream = executingAssembly.GetManifestResourceStream(location))
{
using (var reader = new StreamReader(stream))
{
return reader.ReadToEnd();
}
}
}