Before when I use file in my fileWritter it worked, but now since I'm using getResourceAsStream instead of file how can I make it work?
FileWriter fstream = new FileWriter(new File("filename"), true);
Now when I pass
InputStream is = getResourceAsStream("filename");
FileWriter fstream = new FileWriter(is, true);
I had to change it because when I create runable jar with mave assembly plugin there is no src/main/resources in the jar
EDIT:
thanks to casablanca and others for pointing out my mistakes , follow up :
I need to write to a file, but append it, with preserving the original content. And I need to know to which file I'm writing to of course.