Help with logic in saving tables

Thanks.
I was thinking of doing something like this…but this way it keeps saving the file for each run of the loop()…is it safe to do so?