Added the text_from_file and lines_from_file functions.