I keep getting errors, that the file doesn't exist. This is the first time im doing this and cant find a sufficient answer on google.
the file is stored in a folder with the name : "maths", the documents name is "Data.txt"
the code ive written to read the content is:
def read(data):
try:
count=0
INFILE=open("maths\\Data.txt","r")
for line in INFILE:
rawdata.append(line.rstrip())
count+=1
INFILE.close()
return count
except:
print("File could not be found")
return(count)
exit()