# \#codecxz

**URL:** https://discourse.julialang.org/tag/codecxz/1120.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to decompress .xz files/ How to use streams?](https://discourse.julialang.org/t/how-to-decompress-xz-files-how-to-use-streams/86307)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [September 3, 2022, 11:00pm UTC](https://discourse.julialang.org/t/how-to-decompress-xz-files-how-to-use-streams/86307 "2022-09-03T23:00:32Z")

</div>

I have the following code for unpacking .xz compressed files: using CodecXz function decompress(in, out) stream = open(in) output = open(out,"w") for line in eachline(XzDecompressorStream(stream)) p…
