I would like to embed a text file in an assembly so that I can load the text without having to read it from disk, and so that everything I need is contained within the exe. (So that it's more portable)
Is there a way to do this? I assume something with the resource files?
And if you can, how do you do it and how do you programaticaly load the text into a string?
Adding to Pavan's answer, to get the current assembly (in general section):
GetManifestResourceStream(fileName)(in code, where the read from resource is required):