Read input stream until the next white space?

julia> using Scanf

julia> b = IOBuffer(" \t\v 3289\n\ncraoeuhrcaohuec")
IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=25, maxsize=Inf, ptr=1, mark=-1)

julia> @scanf(b, " %d ", Int)
(1, 3289)

1 Like