I do get a .bak file in the folder where the file is, but nothing gets added to the file.
FileOpen $4 "file.txt" w
FileWrite $4 'Line 1 with "something in quotes"$\r$\n'
FileWrite $4 "Line 2$\r$\n"
FileWrite $4 "Line 3$\r$\n"
FileWrite $4 "Line 4$\r$\n"
FileWrite $4 "Line 5 with a $$ in it$\r$\n"
FileWrite $4 "Line 6$\r$\n"
Any ideas?