Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

reading txt file located in zip archives

Question posted by: Looking2Learn (Newbie) on July 2nd, 2008 05:27 PM
Hi,
I'm currently attempting to read a text file that is located in two subsequent zip archives, (ex: archive1.zip/archive2.zip/textfile.txt).

In my looking around the web, I came across perl's "Archive::Zip::MemberRead", but I couldn't find any good tutorials on using it.

Can I use "Archive::Zip::MemberRead" to accomplish what I'd like to do?
If so, could anyone point to some good examples/tutorials, etc?
And if not, could someone point me in the right direction?

Thanks!

Josh
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
nithinpes's Avatar
nithinpes
Expert
241 Posts
July 3rd, 2008
08:54 AM
#2

Re: reading txt file located in zip archives
Archive::Zip::MemberRead is the right option for your requirement. You can find some sample scripts along with the download in CPAN.

-Nithin

Reply
Looking2Learn's Avatar
Looking2Learn
Newbie
5 Posts
July 7th, 2008
05:04 PM
#3

Re: reading txt file located in zip archives
Great, thanks!

As a follow-up question, in reading through the FAQ for Archive::Zip on CPAN, the author mentioned the "examples" directory
http://search.cpan.org/~adamk/Archive-Zip-1.23/lib/Archive/Zip/FAQ.pod#Sample_code?
But (and I realize this is noobish), being new to the CPAN site, I can't find that directory.
If anyone could provide a link to it, I would appreciate it very much.
Thanks!

Josh

Reply
Looking2Learn's Avatar
Looking2Learn
Newbie
5 Posts
July 7th, 2008
05:12 PM
#4

Re: reading txt file located in zip archives
Never mind, just found it.

Reply
Reply
Not the answer you were looking for? Post your question . . .
180,428 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top Perl Forum Contributors