Read .txt embedded as resource
I have embedded a resource into my code, I want to read the text and apply
the text to some string variables. I have worked out how to do that when I
use an external file but I only want the .exe
string setting_file = "config.txt";
string complete = File.ReadAllText(setting_file);
string Filename = complete.Split('@').Last(); //"Test.zip";
string URL = complete.Split('@').First();
How can I read the resource config.txt (Preferably without new procedures)
No comments:
Post a Comment