ListA.Items.SaveToFile('lista.txt');
I don't think this will magiacally write the infor that fsemonetti needs* to the file, I suspects it writes pointers (untested hypothesis).
* I assume he wants the points, (coördinates) and colors of each box and each line in his file.
Not a difficult task, but I suspect not as trivial as you suggest.
Bart