I'm trying to multiple lines to a text file in Python
with open('output.txt', 'w') as outfile:
outfile.write("open\n" +
"c:\files\file.scr"+
"close"
)
The file path isn't written correctly,
open
c:iles\drawing.dwgclose
Could someone suggest how to write the file path?