I am trying to write a code that does some data processing on some files. I have written logic to split my files into paragraphs. currently, I am splitting using '\n\r'. I want to read the splitting condition in a file so that I can easily change them in the future if required. However, the '\n\r' I read from the file is not behaving the way I want it to behave
I wrote \n\r in a file and when I read it is different from a variable being assigned '\n\r'
>>> vr = '\n\r'
>>> from_file = open('test.txt').read()
>>> print (vr)
>>> print (from_file)
\n\r
>>> print (len(vr))
2
>>> print (len(from_file))
4
So how can I make what I convert what I read from the file to normal python string?
Thanks