def sysread(bytes)
    if @eof
      raise EOFError, 'end of file reached'
    else
      if @binary_flag