# Readall() not defined

**URL:** <https://discourse.julialang.org/t/readall-not-defined/62868>\
**Category:** New to Julia\
**Created:** [June 14, 2021, 9:16am UTC](https://discourse.julialang.org/t/readall-not-defined/62868 "2021-06-14T09:16:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juksu](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Juksu](https://discourse.julialang.org/u/Juksu)\
**Post date:** [June 14, 2021, 9:16am UTC](https://discourse.julialang.org/t/readall-not-defined/62868/1 "2021-06-14T09:16:43Z")

</div>

This post was temporarily hidden by the community for possibly being off-topic, unfocused, inappropriate, or spammy.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [June 14, 2021, 9:20am UTC](https://discourse.julialang.org/t/readall-not-defined/62868/2 "2021-06-14T09:20:48Z")

</div>

Where did you read about that function? That source is very outdated: `readall(io)` was replaced by `readstring(io)` in Julia 0.5, and then `readstring(io)` was replaced by `read(io, String)` in Julia 0.7.

If you are using Julia 1.X you should use `read(io, String)`.

---

<div class="post-metadata">

**Author:** ![Juksu](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Juksu](https://discourse.julialang.org/u/Juksu)\
**Post date:** [June 14, 2021, 9:29am UTC](https://discourse.julialang.org/t/readall-not-defined/62868/3 "2021-06-14T09:29:49Z")

</div>

Thank you, that explains why it has been driving me nuts. (I am on day 2 of testing Julia, so I naturally assume that if something is not working, it must be me doing something worng)

It was here: [readall(filename::AbstractString) » Julia Functions](http://www.jlhub.com/julia/manual/en/function/readall), hit by Google.  
Only after you mentioned it, did I notice that I’d hit a page that is not official documentation.

I will delete this post after a while so as to avoding further infesting google with hits to this deprecated function, and I will also try to add a comment on the page at [jhub.com](http://jhub.com)
