I want to take the entrys from a txt file but right know it shows me this error , has everyone faced this kind of problem before?
Code:
import os
file_path = r'C:\Users\giahn\OneDrive\Έγγραφα\Σχολή\ΔΙΠΛΩΜΑ\main\ready to use\entry1.txt'
if os.path.exists(file_path):
with open(file_path, 'r') as file:
content = file.readline().strip()
start_target = int(content) #this lane has the problem
else:
print("file not found")