I have multiples files I want to read and do calculations on them and then write results for each input in a differently named output file. My code works as expected and pri