Click to See Complete Forum and Search --> : Extracting text file from jar


October 11th, 1999, 09:06 AM
I am trying to write an applet which can extract the text file from the jar file.The jar file is specified as ARCHIVE="Applet.jar"
in the HTML file in <APPLET> tag. So this jar file wiil be downloaded from the server when the applet is loaded.Now I want to get
the InputStream for the text file.I have a strict deadline for doing this.Is there anyway to do it?

poochi
October 11th, 1999, 09:16 AM
InputStream in = this.getClass().getResourceAsStream( "mytextFile.txt" );