Hello,
I have a simple program that reads a
string from a file. I want to pack it as a Jar so I need to locate the input file in the following way:
This code works but how can I write to a file located in the same Jar? (the getResourceAsStream returns an InputStream, not the OutputStream that I need).
Thanks in advance,