automatically read outfilepattern