MonkPaul has asked for the wisdom of the Perl Monks concerning the following question:
With regards to the file and the data it has, i have no idea how big the contents may be, so when using the Archive::Zip module and its implementation
use Archive::Zip; use Archive::Zip::MemberRead; $zip = new Archive::Zip("file.zip"); $fh = new Archive::Zip::MemberRead($zip, "subdir/abc.txt"); while (defined($line = $fh->getline())) { print $fh->input_line_number . "#: $line\n"; } ## $read = $fh->read($buffer, 32*1024); ## print "Read $read bytes as :$buffer:\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading a zipped file
by Joost (Canon) on Apr 04, 2005 at 13:57 UTC | |
by MonkPaul (Friar) on Apr 04, 2005 at 15:02 UTC | |
by polettix (Vicar) on Apr 04, 2005 at 15:48 UTC | |
by MonkPaul (Friar) on Apr 04, 2005 at 16:19 UTC | |
by polettix (Vicar) on Apr 04, 2005 at 16:46 UTC |