add code to write excel data to txt file

add code to write excel data to txt file