Following is what I meant expressed in semi-pseudo-code:

for (int i = 0; i < ADOTable1->RecordCount; i++)
{
Write to file the values you want, e.g.:
ADOTable1->FieldByName("Abc")->AsString + ", " + ADOTable1->FieldByName("Xyz")->AsString + ...
}