Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
How to delete a zipped folder
kayanaat sidiqui
Ranch Hand
Posts: 122
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Suppose there is a zipped folder name "myZip.zip".
It contains two text files let say text1.txt and text2.txt.
What i need is to delete the "myZip.zip".
How to do that?
Thanks,
Kaya.
Rob Spoor
Sheriff
Posts: 22783
131
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
A zipped folder is actually a simple ZIP file, so File's delete() method should do the trick.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
kayanaat sidiqui
Ranch Hand
Posts: 122
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Rob.
Previously i tried with this. But did some mistakes thts why i did not get result.
Anyways thanks a lot. I did it.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
problem in unzipping
[SOLVED] Is the war compression idempotent?
path problem
Zip file creation with directory suppression through an API
how to search for a certain extension within a folder
More...