convert function
create txt files