ReadLine
ReadLine[stream] reads a line of text from a stream and returns it as a string.
ReadLine[proc] reads a line from an external process.
Examples
Read a line from a file:
stream = OpenRead["file.txt"];
ReadLine[stream]
(* "first line of file" *)Close the stream when done:
Close[stream]Please visit the official Wolfram Language Reference for more details.