EOF function checks whether the file pointer is at the end of the file.
Checks whether the file pointer is at the end of the desired file.
The function has the following parameter:
Specifies the file variable, which is associated with the desired file by calling the
Returns True if the pointer is at the end of the file (or if the file is empty). Otherwise, returns False.