HomeManualTopicsTypesSymbols

std::getln_from

reads a text line from the specified input channel

Parameter

fd
the input channel

Results

None

Description

The function might block until the input channel is ready to deliver more data.

The read data must be in utf8 encoding. The data is converted before returning.

The newline character is included in the returned string.

This function needs I/O-access rights.

Example

getln_from! $line STDIN_FILENO

Topic

Input-Output

See also

std::get_from_until reads text from the specified input channel until a specific sentinel is encountered
std::getln reads a text line from the standard input channel