• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
jing hu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what library can read a .zip file?

if the library is portable, it will be best!

Thanks very much.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
libzip
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
".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.
 
jing hu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim Holloway very much!

I will try you method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic