aspose 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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: read text-file in jar