lnkiris: input file is now opened before output