Quantcast
Channel: Writing to a mac csv not working using python file writter - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



Writing 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
Browsing latest articles
Browse All 2 View Live




Latest Images