I'm learning how to open a file in Python, but when I type the path to the file I want to open, a window pops up, saying "(unicode error) 'unicodeescape codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape". It highlights the first of my parentheses. Here's the code:
with open ("C:\Users\Rajrishi\Documents\MyJava\text.txt") as myfile:
data = myfile.readlines()
print(data)