Java IO: Resource file getting modified in IDE but not in jar -


this question has answer here:

i able read , write file in eclipse. able read file in jar. however, not able write file in jar. located in class folder called res. have unzipped jar file , contains file need write not modified after first run.

how can this?

i have tried bufferedwriter , printwriter no effect. tried usingfileoutputstream cannot construct using getclass().getresourceasstream(path) returns inputstream.

jar archive, not supposed write file of jar. write file outside , create jar later.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -