conversion of texts to csv