Returns a string read from standard input through the end of the current line or until EOF is reached.
- Xcode 8.0+
- Swift Standard Library
true, newline characters and character combinations are stripped from the result; otherwise, newline characters or character combinations are preserved. The default is
The string of characters read from standard input. If EOF has already been reached when
read is called, the result is
Standard input is interpreted as
UTF-8. Invalid bytes are replaced by Unicode replacement characters.