Here is a code that is reading a file for me. But each word of the file is reversed from the original text that I have put in line.txt file.
line.txt
اور ایک
test.py
import re
f = open("line.txt",encoding="utf-8")
text = f.read()
print(text)
