With text files you can also proceed as following:
- Double click your
Properties
-> Resources.resx
file to open the resource designer.
- From the first small drop down on the top, select "Files" as resource type.
- Click on
Add Resource
-> Add Existing File...
and select your text files.
Let's say that the TXT you added was called Foo.txt
... you can just access it's content like so:
String foo = Properties.Resources.Foo;
Then you can also change te file names inside the resource designer and they will be automatically refactored in your code. From the Resources
directory, where they are now located in your project, you can also edit them.
I just recommend you to keep their access level as internal
.