script for converting printed txt file to csv