with open('pi_digits.txt') as file_object:
    contents = file_object.read()
    print(contents)

file_path = 'C:\Users\hp\Desktop\1.txt'
with open(file_path) as file_object:
    contents = file_object.read()
    print(contents)
