aspose file tools*
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 Spring in Action this week in the Spring 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: 16141
    
  21

".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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to read a .z file in c++?