I want to use a txt file in a jar file.
I am using eclipse.
I have the txt file in a folder called "resources" inside of my project folder.
Here is the code that I am trying to use to get the txt file:
BufferedReader br = new BufferedReader(new FileReader("resources/list of names.txt"));
This works when running the code in eclipse, but it doesn't work after I export it as a .jar file and run it.
Any Suggestions?