I'm trying to read in from an excel file, it is supposed to be a router check. I have attempted to parse it. I then want to go to the column where it says whether or not it has already been patched as I only want to print out to results.txt the ones that have not been patched.
Your code is far too complicated. You basically need to read the data and only if the conditions is right to write it to the output. No need for an array.
I would do it like this: