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
Post a Comment