# Does CSV.read() block the file? IS there XLSX.close(), since XLSX.Open() exist

**URL:** https://discourse.julialang.org/t/does-csv-read-block-the-file-is-there-xlsx-close-since-xlsx-open-exist/28484
**Category:** New to Julia
**Created:** [September 6, 2019, 9:26pm UTC](https://discourse.julialang.org/t/does-csv-read-block-the-file-is-there-xlsx-close-since-xlsx-open-exist/28484 "2019-09-06T21:26:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)
#### Post date: [September 6, 2019, 9:26pm UTC](https://discourse.julialang.org/t/does-csv-read-block-the-file-is-there-xlsx-close-since-xlsx-open-exist/28484/1 "2019-09-06T21:26:35Z")

</div>

Does CSV.read() block the file?  
It seems that yes? how to unblock?

The same question about XLSX.open()

Thank you in advance.

---

<div class="post-metadata">

### Author: ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)
#### Post date: [September 6, 2019, 11:40pm UTC](https://discourse.julialang.org/t/does-csv-read-block-the-file-is-there-xlsx-close-since-xlsx-open-exist/28484/2 "2019-09-06T23:40:21Z")

</div>

`CSV.read()` just goes to the end of the file and then releases it, so there’s no need to close it.

---

<div class="post-metadata">

### Author: ![felipenoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/felipenoris/32/553_2.png) [@felipenoris](https://discourse.julialang.org/u/felipenoris)
#### Post date: [September 8, 2019, 5:55pm UTC](https://discourse.julialang.org/t/does-csv-read-block-the-file-is-there-xlsx-close-since-xlsx-open-exist/28484/3 "2019-09-08T17:55:28Z")

</div>

Currently, XLSX openxlsx methods keep a stream opened until you use XLSX.close method.

The alternative is to use XLSX.readxlsx, which will read the entire file at once and close the stream before returning.
