End of file event handling
End of file event handling