Results 1 to 2 of 2
  1. #1
    fangzhong is offline Member
    Join Date
    Nov 2007
    Rep Power

    Default zip file opeartion

    Hi all, I have a large collection of zip files (about 400), each file contains 300 plaint texts. If I unzip all the files, these will take up too much space (about 4G). So I am wondering if there are some method that can access the content in the plain text files without unzipping all the zip files.
    For example, read the content to a String variable. Anyone knows, please give me a hand.

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Rep Power


    All you need is package. Read following resources. You will need to list contents of a zip file and extract only the files you need.. (Java 2 Platform SE v1.4.2) Examples from The Java Developers Almanac 1.4

Similar Threads

  1. count character in text file as input file
    By aNNuur in forum New To Java
    Replies: 7
    Last Post: 03-25-2010, 05:01 PM
  2. Replies: 2
    Last Post: 04-07-2009, 07:25 AM
  3. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 10:13 AM
  4. Converting text file(.txt) to JPG file(.jpg) in java
    By javadeveloper in forum Advanced Java
    Replies: 0
    Last Post: 11-09-2007, 05:22 PM
  5. Regarding conversion of Image file to Video file
    By RamaDeviMsc in forum Advanced Java
    Replies: 0
    Last Post: 06-25-2007, 03:28 PM

Posting Permissions

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