IO.binstream
You're seeing just the function
binstream
, go back to IO module for more information.
Returns a raw, line-based IO.Stream
on :stdio
. The operation is Unicode unsafe.
This is equivalent to:
IO.binstream(:stdio, :line)
Specs
binstream(device(), :line | pos_integer()) :: Enumerable.t()
Converts the IO device
into an IO.Stream
. The operation is Unicode unsafe.
An IO.Stream
implements both Enumerable
and
Collectable
, allowing it to be used for both read
and write.
The device
is iterated by the given number of bytes or line by line if
:line
is given. This reads from the IO device as a raw binary.
Note that an IO stream has side effects and every time you go over the stream you may get different results.
Finally, do not use this function on IO devices in Unicode mode as it will return the wrong result.