简体   繁体   中英

Java How to write a text file in a jar

My problem is:

I do not find ways to write a txt file, which I put in my jar file

I looked different tutorial but they say it is not feasible

I appeal to you if someone can give me another solution

A tutorial to follow to solve my problem

Good day to all

Indeed this is impossible. The txt file should be provided as a resource outside the JAR.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM