The feof() function checks if the "end-of-file" (EOF) has been reached.
This function returns TRUE if an error occurs, or if EOF has been reached. Otherwise it returns FALSE.
|file||Required. Specifies the open file to check|
Tip: The feof() function is useful for looping through data of unknown length.
The output of the code above will be:
Your message has been sent to W3Schools.