Hello,
I don't know how those strings are called in Python.
In the second block, I can't get linefeeds: The two strings are on a single line. What's the correct syntax?
---
Edit: Makes no difference:
I don't know how those strings are called in Python.
In the second block, I can't get linefeeds: The two strings are on a single line. What's the correct syntax?
#OK with open("test.txt", 'w',encoding='utf-8') as writer: writer.write("line1") writer.write("line2\r\n") writer.write("line3\n") writer.write("line4") #NOK #with open(f"{TITLE}.cmd", 'wt',encoding='utf-8') as writer: with open(f"{TITLE}.cmd", 'w',encoding='utf-8') as writer: writer.write(fr"c:\test -f 139 {URL}\\n") writer.write(fr"c:\test -f 92 {URL}\\n")Thank you.---
Edit: Makes no difference:
with open(f"{FILE}.cmd", 'wt',encoding='utf-8') as writer: writer.write(f"{TITLE}\n") writer.flush() writer.write(fr"c:\blah -o audio.m4a -f 139 {URL}\\n") writer.flush() 