When I add a txt file as a resource to a project, how can I then consume the contents of that resource as a string?
The closest I've been able to get is by using the Resource Manager, to pull an unmanaged stream. However, this throws a null error:
using (StreamReader sr = new StreamReader(
    Properties.Resources.ResourceManager.GetStream(
        "TestFile.txt", CultureInfo.CurrentCulture)))
{
    Console.WriteLine(sr.ReadToEnd());
}
 
     
     
    