When the program starts, I want that it can read an embedded text file in the resources folder of the project and show the content of it in a textbox for example. And when I click a button on my form, I can write in this text file.
I already tested several things :
string text = File.ReadAllText(Properties.Resources.favoris); //"favoris" is a text file.
But I have an error because Properties.Resources.favoris
is not a file path.
I want the more simple way to do that.