Read query list file

1. Read query list file
2. check output directory is exist