Function readLine

Reads and returns a single line from the stream.

Prototype

ubyte[] readLine(
  InputStream stream,
  ulong max_bytes,
  string linesep,
  Allocator alloc
);

Throws

An exception if either the stream end was hit without hitting a newline first, or if more than max_bytes have been read from the stream in case of max_bytes != 0.

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.