How can I modify a text file inside a Jar file while runtime? [duplicate]
问题 This question already has answers here : Modifying a file inside a jar (12 answers) Closed 3 years ago . Well as the question says, How is that possible? This file is my proyect structure (I'm using eclipse). When exported as Jar, I can access and print the "root.ini" content through console with the code below but, How can I write to that file while runtime? This method is called from 'Main.java' private void readRoot(){ InputStream is = getClass().getResourceAsStream("/img/root.ini");