What I want to do:
line_buffer = UInt8 buffered_io_stream = open("file.txt") while readuntil!(line_buffer, buffered_io_stream, '\n') != 0 # do thing with line_buffer # clear line_buffer end
Is there a package out there that does this, ideally into a
Looking at the source code,
readuntil is delegated to some C code? julia/iostream.jl at f9720dc2ebd6cd9e3086365f281e62506444ef37 · JuliaLang/julia · GitHub
Is there any good documentation on the IO / Stream / Buffered versions of those and how to implement them? All I’m seeing is this section of the docs: I/O and Network · The Julia Language Which just describes the methods but doesn’t really get into the expected interfaces for something to be a sub-type of
IO for example.
Lastly, are there plans to improve the standard library with regards to Strings/byte strings and improved IO code written in julia instead of C? From what I’m seeing here: Milestones - JuliaLang/julia · GitHub, there are no significant changes planned for Strings or File IO related APIs.