↧
Answer by Laurent LAPORTE for Writing to a mac csv not working using python...
The end delimiters of the two files are different. The .csv file probably has Windows end of line: "\r\n", The .txt file probably has Posix end of line: "\n". So, in binary mode, lines always differ....
View ArticleWriting to a mac csv not working using python file writter
I have a python code where it compares two files and returns the common lines and writes them to a result file. I am using a MAC machine. script.py with open('temp1.csv', 'r') as file1: with...
View Article