jQuery in Action, 2nd edition*
The moose likes Linux / UNIX and the fly likes how to read a .z file in c++? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to read a .z file in c++?" Watch "how to read a .z file in c++?" New topic
Author

how to read a .z file in c++?

jing hu
Ranch Hand

Joined: Jun 30, 2009
Posts: 63
what library can read a .zip file?

if the library is portable, it will be best!

Thanks very much.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
libzip
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

".z" (more correctly ".Z") is not a ZIP file. The ".Z" file extension is used for files created with the unix "compress" utility. Unlike ZIP files, compressed files don't have directories in them.

One way to read a ".Z" file is to pipe it through the uncompress program first, but you can also use the compress library.


Customer surveys are for companies who didn't pay proper attention to begin with.
jing hu
Ranch Hand

Joined: Jun 30, 2009
Posts: 63
Thanks Tim Holloway very much!

I will try you method.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to read a .z file in c++?
 
Similar Threads
Comparing two excel files
XML question
Streaming an xcel file using servlets
How To read .CHM file in android Application
handwriting script recognition