Data FilesTypesTextFileMethodsappendOn this pageappend Method of TextFile. append(const string text) -> TextFile Appends text to the end of the file. Parameters text: Text content. Returns Reference to the same TextFile instance.