func readLine(stripNewline: Bool)

Returns Characters read from standard input through the end of the current line or until EOF is reached, or nil if EOF has already been reached.

If stripNewline is true, newline characters and character combinations will be stripped from the result. This is the default.

Standard input is interpreted as UTF-8. Invalid bytes will be replaced by Unicode replacement characters.


func readLine(stripNewline stripNewline: Bool = default) -> String?