This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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