I am very new to Python and wish to get some help here, how can I detect if the function has reach the end of file?
with open("employees.txt", "r") as a_file:
d = a_file.tell()
print(d)
# open the file in reading mode
# .tell()returns current location of the file pointer
for x in a_file:
print(x)
# read through the file line by line
l_fun()```