This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GZIP file append writing  RSS feed

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have 10 text files , i am going to read all files one by one and compressing using gzip compression.
read first file and comperss then waiting 10 mins. and reading next text file compress with the previous gzip file from the end of the gzip file.
this operation happen end of text files and finally i want one .gzip file.
how can i append the gzip file?

Please let me know. (its urgent)

Thanks.
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not possible. You need to have all files available when creating a compressed file; you can't add files later without de- and re-compressing the other ones.
 
Deva Devan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

can we append two .gzip files without extracting?
 
Ulf Dittmer
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No
 
Sheriff
Posts: 21256
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thamizh Bharathi wrote:(its urgent)


Please EaseUp.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!