-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
test.txt:
hello
my
name is
bob
test.jl:
using ViewReader
@info "eachlineV:"
for line in eachlineV("test.txt")
@show line
end
@info "eachline:"
for line in eachline("test.txt")
@show line
endREPL:
julia> include("test.jl")
[ Info: eachlineV:
line = "hello"
line = "my"
line = "name is"
[ Info: eachline:
line = "hello"
line = "my"
line = "name is"
line = "bob"
julia> versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 16 × AMD Ryzen 9 5900HS with Radeon Graphics
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 on 16 virtual cores
Metadata
Metadata
Assignees
Labels
No labels