I have a need to generate complicated text files from a Java desktop application.
I've decided the code would be considerably easier to implement if I could copy a template file and tailor it to whatever needs to be constructed.
I will only be distributing a jar to the customers. Is there a best-practice on how to handle this?
You can read a file stored in your jar using:
Class.getResourceAsStream(pathToFile);
See this question for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With