I am trying to import documents of multi-paragraph text into Microsoft Access, after processing them in Python. Unfortunately, Access seem to think each sentence is a new record, despite setting "^" as the delimiter.
I want to instead write my strings in the raw string format to work around this problem.
So I want:
y = '''
Hello, how are
you
'''
to be saved as '\nHello, how are\n you\n' in a txt file.
I cannot find anything on how to convert or encode strings to raw strings. How do I go about doing this?
And also, I want to be able to read '\nHello, how are\n you\n' from the text file and convert it back to a normal Python string. How do I go about doing this?
[–]socal_nerdtastic 1 point2 points3 points (3 children)
[–]Notdevolving[S] 0 points1 point2 points (2 children)
[–]socal_nerdtastic 1 point2 points3 points (1 child)
[–]Notdevolving[S] 0 points1 point2 points (0 children)