ReadLine
ReadLine[stream] reads a line of text from a stream and returns it as a string.
ReadLine[proc] reads a line of text generated by an external process and returns it as a string.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.