Python Write Crlf To File, The read and write functions know … You need to open the file in binary mode i.