|
Java™ by example!
|
|
|
How do I read a text file from a jar file?
This example reads the file ansi.txt that is stored in rt.jar. Just make sure the jar file in which your text file is stored is in your classpath! Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|