File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "read text-file in jar" Watch "read text-file in jar" New topic
Author

read text-file in jar

Per Lovdinger
Ranch Hand

Joined: Jun 11, 2001
Posts: 35
Hi,
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
Per
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: http://aspose.com/file-tools
 
subject: read text-file in jar
 
Similar Threads
read content of text file which is in jar
Jar file generation
reading a file from a jar file
how to iterate thorw the text files inside jar ( using Class.getResourceAsStream() )
contents of dt.jar and tools.jar