title: C#: Reading the content of a file, which is embedded in a resource file
body: <p>How can I read a <strong>text file</strong>, which is embedded in a <strong>resx file</strong> with the help of the <strong>ResourceManager</strong> class?</p>
  
  <p>Whats wrong with the following snippet?</p>
  
  <pre><code>ResourceManager resman = new ResourceManager("Mynamespace.RESXFileName", Assembly.GetExecutingAssembly());
  Stream stream = resman2.GetStream("ResourceName");
  </code></pre>
  
  <p><strong>stream is alway = null!</strong></p>