Read until newline or EOF. Return an empty string if EOF is hit immediately. If size is specified, at most size characters will be read.
io/TextIOBase.readline
TextIOBase.readline