I'm trying to save some output files at the same place as my Java classes. I want to use a relative path so there isn't any problem when I move the code somewhere else.
For the moment it writes my file under /home/myUser/output_j.erome
and the actual code is :
FileWriter out = new FileWriter("output_j.erome",true);
I can't find how to create dynamically the folder at the same place as my Java classes and then add my file in it.