How to read a txt file and edit it from project resources

Viewed 32

I need my code to read data from a txt file and write it to a variable from the project resources, please help

var exePath = AppDomain.CurrentDomain.BaseDirectory;
var path = Path.Combine(exePath, "Base\\base.txt");

string contents = File.ReadAllText(path);
0 Answers
Related