First of all - I love all of you at Stackoverflow! Everyone is very helpful! Unfortunately, when I go to answer questions, they are too advanced for me: "(
I want to save a text file to a folder - but not an absolute folder, for example, I want to save it to
{class location} /text/out.txt
Since the program runs on different computers, the location is changing, so I can not put C: // ect
I also know that I need to use the "\\" doubt - but this did not work in my attempts
public void writeFile (int ID, int n) { try{ String Number = Integer.toString(n); String CID = Integer.toString(ID); FileWriter fstream = new FileWriter("//folder//out.txt",true);
source share