File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes read text-file in jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "read text-file in jar" Watch "read text-file in jar" New topic

read text-file in jar

Per Lovdinger
Ranch Hand

Joined: Jun 11, 2001
Posts: 35
If I have a jar file which also includes a text-file,is there any way I can read that text-file
from another class in the same Jar ?
Thanks in advance
Nagendra Prasad
Ranch Hand

Joined: Jul 11, 2002
Posts: 219
If I have understood ur question right, then it is possible.
Check this code snippet.. it should hopefully held u..

Best Regards,<br />Nagendra Prasad.
I agree. Here's the link:
subject: read text-file in jar
jQuery in Action, 3rd edition