# Read/write compressed files in julia 0.7

**URL:** <https://discourse.julialang.org/t/read-write-compressed-files-in-julia-0-7/24791>\
**Category:** General Usage\
**Created:** [May 31, 2019, 4:22am UTC](https://discourse.julialang.org/t/read-write-compressed-files-in-julia-0-7/24791 "2019-05-31T04:22:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Herb](https://avatars.discourse-cdn.com/v4/letter/h/8c91f0/32.png) [@Herb](https://discourse.julialang.org/u/Herb)\
**Post date:** [May 31, 2019, 4:22am UTC](https://discourse.julialang.org/t/read-write-compressed-files-in-julia-0-7/24791/1 "2019-05-31T04:22:19Z")

</div>

I’ve written extensive code in julia 0.6.3 using GZip to read and write compressed files.  
julia 0.7 doesn’t understand GZip. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [May 31, 2019, 5:46am UTC](https://discourse.julialang.org/t/read-write-compressed-files-in-julia-0-7/24791/2 "2019-05-31T05:46:00Z")

</div>

> [@Herb](#):
>
> julia 0.7 doesn’t understand GZip

I don’t understand what you mean here. Please provide a self-contained example.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

**Author:** ![bicycle1885](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bicycle1885/32/107_2.png) [@bicycle1885](https://discourse.julialang.org/u/bicycle1885)\
**Post date:** [May 31, 2019, 8:13am UTC](https://discourse.julialang.org/t/read-write-compressed-files-in-julia-0-7/24791/3 "2019-05-31T08:13:39Z")

</div>

I guess you need to install GZip.jl again on Julia 0.7 because Julia 0.6 and 0.7 use separated package systems.

---

<div class="post-metadata">

**Author:** ![Herb](https://avatars.discourse-cdn.com/v4/letter/h/8c91f0/32.png) [@Herb](https://discourse.julialang.org/u/Herb)\
**Post date:** [June 13, 2019, 4:51am UTC](https://discourse.julialang.org/t/read-write-compressed-files-in-julia-0-7/24791/4 "2019-06-13T04:51:37Z")

</div>

Folks - Thanks for your guidance. Here’s what worked. Install CodecZlib first.  
using CodecZlib  
data = fill(“”,15582341)  
i = 0  
stream = open(“W(18)\_1\_181024.saw.gz”) #open named file as an I/O stream  
for line in eachline(GzipDecompressorStream(stream))   
global i += 1  
data[i] = line  
end # then, e.g., println(data[1]). Am I restricted to 9 lines for reply???
