I am having trouble with files once again and could use any assistance you can offer.
I have to be able to read in files and process each file for payors – eg. United, MC, BSNM etc. I am able to do this and process. However, I need to append the file prefix to each file that writes to an output. For example, if I am reading a BSNM19039120489 file and it processes three output files, I need to add “BS” to each file before reading the next file, similarly with the rest of the payor files. WHen I attempt this, it reads the first file (BSNM) appends the prefix to the output files and duplicates the output of the same file again with different prefixes appended to the file. Please advise – I have attached my code for review.