I have an
IOStream, and I only want to read between the
mth line and
nth line. How should I do?
I have a pseudocode:
using ResumableFunctions @resumable function iterate_io_between(io::IOStream, m::Int, n::Int) io = seek(io, m) while pos != n pos = position(io) @yield io end end
I am not sure the
@yield statement works, since I have not used