With that code
BufferedReader reader;
InputStream fis;
fis = Logs.class.getClassLoader().getResourceAsStream("data");
reader = new BufferedReader(new InputStreamReader(fis, Charset.forName("UTF-8")));
I can read from data file from src folder.
How can I read it from config folder?
And main question How can I write there?
Btw
getResourceAsStream("../config/data");
is not working, if I want to read from config directory.