send isEOF when file ends