get_next_line

A function to read an open file from its current location to the end of the file or next newline.