Reputation: 55
I have a program where it requires a text file to save some information, I have functions that currently use the path of the file then do stuff with it. However, I want to build the program into a .exe, but then the file is obviously not going to be in the same place. After research, I found using embedded resources allows me to add the text file to the program, but I can't seem to do anything with it. I have the "highscores.txt" in embedded files, and am currently using this:
string path = Resources.highscores;
However, this basically says that resources doesn't exit and I don't know what the problem is.
Upvotes: 2
Views: 191