CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Extracting text file from jar

    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?


  2. #2
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: Extracting text file from jar




    InputStream in = this.getClass().getResourceAsStream( "mytextFile.txt" );






Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured