def nextfile():
 if (not _state):
  raise RuntimeError('no active input()')
 return _state.nextfile()

def nextfile ( ) : if ( not _state ) : raise RuntimeError ( 'no active input()' ) return _state . nextfile ( )
close the current file so that the next iteration will read the first line from the next file ; lines not read from the file will not count towards the cumulative line count .