Hi,
I'm trying to write to a resource that will be included in my future jar file (that's just an app, no applet).
I can read it fine with the following code, if I put my file in the same directory as Main.class.
InputStream in = Main.class.getResourceAsStream("file.txt");
Is there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.