Saved text to file skips breaklines
-
Hey
I tried to copy text from 2 SOURCES in this format:
word 1
word 2
word 3and save it to text file.
And output was always like this:
word1word2word3How can I keep breaklines?
-
You can add break lines by adding "\r\n" in the expression.
Here is the screenshot:
https://prnt.sc/bym8jnBasically you should have something like: "Your string" + "\r\n"
-
but I pasted variable that contains:
word1
word2
word3if I used your modification, it would be
wordword2word3 BREAKLINEAnyway thanks, I have done it already with lists.
so variable:
word1
word2
word3is saved as:
word1word2word3then I read it from file as list and save to file as list, and its:
word1
word2
word3