Code: resolve both and outFile w.r.t input file.