I'm working on a Java project. Just one value is stored in a txt file in this location: (src/files/file.txt)
.
I export the project to jar file and I know that beacuase of the src folder, I need to use the following code to read the file.
InputStream stream = MainUi.class.getResourceAsStream("src/files/tax.txt");
But I have problem with writing to file in such a situation, the file data is needed to be changed. Please let me know how to solve it.