I wrote this code in the Load Content of XNA 4.0 for reading the star map, after actually adding it to my content, and I have no idea how to write/draw it onto my application, any suggestions?

    string starmap = null;

        using (var stream = TitleContainer.OpenStream("starmap.txt"))
            using (var reader = new StreamReader(stream))
                starmap = reader.ReadToEnd();

closed as unclear what you're asking by Maximus Minimus, Alexandre Vaillancourt, Tyyppi_77, Gnemlock, DMGregory Oct 21 '17 at 15:44

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ Why would rendering content that you loaded from text be different than rendering content from a hardcoded variable, or from a procedural generator, or from a webservice, or any other data source? What particular problem are you experiencing with this text content that you need help overcoming? \$\endgroup\$ – DMGregory Oct 21 '17 at 15:44

Browse other questions tagged or ask your own question.