[solved] inline script write to file
thx for the 0.26 version, looks great!
I'm trying to write informations to a .txt file using an inline script, containing some variables and other stuff.
openSesame returns a SyntaxError when i add a line break to file.write(str). Using the same line on command line works well however.
f = open(filename, 'w') f.write("text.txt") #works f.write("text.txt\n") # works also
f = open(filename, 'w') f.write("text.txt") #works f.write("text.txt\n") # doesn't work -> SyntaxError: EOL while scanning string literal
I have tried several options, but none works.
Thx in advance!