Loops through flat files and inputs file names