Skip to content

Commit

Permalink
add readlines(). closes #6511
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Apr 14, 2014
1 parent e60204f commit b5e27ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/io.jl
Expand Up @@ -228,7 +228,7 @@ end
next(itr::EachLine, nada) = (readline(itr.stream), nothing)
eltype(itr::EachLine) = ByteString

readlines(s) = collect(eachline(s))
readlines(s=STDIN) = collect(eachline(s))


## IOStream
Expand Down

0 comments on commit b5e27ce

Please sign in to comment.