Update get_line function for File class.