I want to open a txt file contained in my project from any PC.
I have a problem when opening a txt file that is in the resources folder of my project. The point is that I can open the file if I specify the path of it from my hard drive, but it will not work if the project is executed on another computer.
This is how I open it:
String directorio = "D:\EscritorioWindows\Proyecto\src\recursos\records.txt"; records = new File(directorio);
So, I would like to know how to open a resource from my project from any PC.
Any suggestions are grateful. Greetings!