Connecting Tech Pros Worldwide Forums | Help | Site Map

Example of Reading content of zip file.

Newbie
 
Join Date: Dec 2007
Posts: 5
#1: Dec 30 '07
Can someone please send me an example of reading zip file (of text ffile)

and write it to another text file.

For example:

If "a.txt" file was zipped to "a.zip" how can i read it and write it to "b.txt" file

Thanks for the help.

eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 900
#2: Dec 30 '07

re: Example of Reading content of zip file.


Checkout CPAN for a module that can handle what you need. Also, read the documentation of the various modules for code examples. If you still have problems with the code that you have tried, then post what you tried. As for just giving you code that is not why we are here. We are here to help you learn.

--Kevin
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#3: Dec 30 '07

re: Example of Reading content of zip file.


Same question a few days ago, they never bothered to reply.

http://www.thescripts.com/forum/thread752318.html

And they never replied to the other thread they started:

http://www.thescripts.com/forum/thread747508.html

meeh.....
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,573
#4: Dec 30 '07

re: Example of Reading content of zip file.


Quote:

Originally Posted by KevinADC

Same question a few days ago, they never bothered to reply.

http://www.thescripts.com/forum/thread752318.html

And they never replied to the other thread they started:

http://www.thescripts.com/forum/thread747508.html

meeh.....

Sagiv,

It is common in these forums that if you post a thread, then you should keep up on them and follow up on each one that gets answered. Posting and then abandoning is not an acceptable practice and will not get you helped.

I am issuing you this warning. Go back and please answer/respond to the other threads you have started. In the future, do not neglect the threads you start.

Regards,

Jeff
Newbie
 
Join Date: Dec 2007
Posts: 5
#5: Jan 1 '08

re: Example of Reading content of zip file.


Quote:

Originally Posted by numberwhun

Sagiv,

It is common in these forums that if you post a thread, then you should keep up on them and follow up on each one that gets answered. Posting and then abandoning is not an acceptable practice and will not get you helped.

I am issuing you this warning. Go back and please answer/respond to the other threads you have started. In the future, do not neglect the threads you start.

Regards,

Jeff

I'm new here and in Perl world Thanks for the clarification :)
Newbie
 
Join Date: Dec 2007
Posts: 5
#6: Jan 1 '08

re: Example of Reading content of zip file.


Quote:

Originally Posted by eWish

Checkout CPAN for a module that can handle what you need. Also, read the documentation of the various modules for code examples. If you still have problems with the code that you have tried, then post what you tried. As for just giving you code that is not why we are here. We are here to help you learn.

--Kevin


I'm new in Perl and learn all by myself , so, everything is hard in the begining,
Thanks for the help , I'll send the the code :)
Reply