How can I write to files using Python (on Windows) and use the Unix end of line character?
e.g. When doing:
f = open(\'file.txt\', \'w\') f.write(\'hello\\n
You'll need to use the binary pseudo-mode when opening the file.
f = open('file.txt', 'wb')