Change sample file to txt file