Function readLine
Reads and returns a single line from the stream
.
Prototypes
ubyte[] readLine()(
InputStream stream,
size_t max_bytes = size_t .max,
string linesep = "\x0d\x0a",
Allocator alloc = defaultAllocator()
);
void readLine()(
InputStream stream,
OutputStream dst,
size_t max_bytes = size_t .max,
string linesep = "\x0d\x0a"
);
void readLine(R)(
InputStream stream,
ref R dst,
size_t max_bytes = size_t .max,
string linesep = "\x0d\x0a"
)
if (isOutputRange!(R, ubyte));
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
.
Authors
Sönke Ludwig
Copyright
© 2012-2016 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.