Data FilesTypesTextFileMethodsreadOn this pageread Method of TextFile. read() -> string Reads the entire file as text.