Skip to content
Advertisement

create a csv with the Items missing on the latest file

I am trying to create a csv with the Items missing on the latest file log. the comparing files are out.csv wish is a scan result, and the latest csv on the log folder. the idea will be not repeating the rows already used before as the out.csv will have always the full content

JavaScript

I have not a clue why it never show a consistent result I wonder if some one can help me with this thanks a lot.

Advertisement

Answer

As you are using ‘w’ as mode, this overrides any previous content in the new file for every iteration.

Try the folowing solution, that writes all the rows at once:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement