# Readlines in Pluto limiting file size

**URL:** <https://discourse.julialang.org/t/readlines-in-pluto-limiting-file-size/85828>\
**Category:** General Usage\
**Tags:** pluto, io\
**Created:** [August 16, 2022, 2:59pm UTC](https://discourse.julialang.org/t/readlines-in-pluto-limiting-file-size/85828 "2022-08-16T14:59:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkzwart](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dkzwart](https://discourse.julialang.org/u/dkzwart)\
**Post date:** [August 16, 2022, 2:59pm UTC](https://discourse.julialang.org/t/readlines-in-pluto-limiting-file-size/85828/1 "2022-08-16T14:59:03Z")

</div>

I am trying to read in files with a lot of lines using Pluto. However, readlines seems to be limited to 137k odd lines, where I need 142k lines to be read. If I run the code in a Julia REPL outside of Pluto it sees the whole file, but inside Pluto it is limited. Is this a Pluto thing, or is it possible I am missing something?

```julia
filedir = open_dialog("select file")
file = readlines(filedir)
size(file)

```

---

<div class="post-metadata">

**Author:** ![Jake](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jake/32/46007_2.png) [@Jake](https://discourse.julialang.org/u/Jake)\
**Post date:** [August 16, 2022, 8:53pm UTC](https://discourse.julialang.org/t/readlines-in-pluto-limiting-file-size/85828/2 "2022-08-16T20:53:06Z")

</div>

I just created a little example that I tried in both the Julia REPL and in Pluto and both worked. The example is

```julia
julia> open("myfile.txt", "w") do io
           for i in 1:200_000
               write(io, "$(rand())\t$(rand())\n")
           end
       end

julia> tmp = readlines("myfile.txt");

julia> length(tmp)
200000

```

In Pluto I increased the file size to 2 million lines and still no problem.

---

<div class="post-metadata">

**Author:** ![dkzwart](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dkzwart](https://discourse.julialang.org/u/dkzwart)\
**Post date:** [August 16, 2022, 9:00pm UTC](https://discourse.julialang.org/t/readlines-in-pluto-limiting-file-size/85828/3 "2022-08-16T21:00:26Z")

</div>

Hi @Jake, I tried your example in Pluto, and readlines reads all 200,000 lines on my machine as well. My file is text of different length lines. Perhaps that is why I am limited? Or maybe there is something that says EOF?

Is there a way to share \*.txt files here? I would love it if someone else could check it out
