set inputfile to fullpathname