exposed datatypes/export_txt method