This discussion is archived
3 Replies Latest reply: Nov 29, 2007 7:17 PM by 807603 RSS

read a file from a jar file and copy it to another file

807603 Newbie
Currently Being Moderated
hey,

Is there an easy way to read in a jar achive file and output it to another file? I used this for an input stream
FileInputStream fileIn = (FileInputStream) this.getClass().getClassLoader().getResourceAsStream("src_txt/lessonFile.template.txt");
but how do I then output this stream? Or am I not doing it correctely

gr,

Remco