added: get_next_line utility

small function that reads a file line by line.