From my understanding, I tried using vinegar and draw a loop around my meals to prevent attracting the ants. As to prevent the flies, I use another plate to cover my meals. This can be a hard time for cleaning because of the need to clean the plates (that is used to cover the meals) and also the table with the vinegar.
Are there better ways?