Did you know ... Search Documentation:
stream->end_of_file