Some subset or all of this may be handy for your implementation or reference purposes. I checked it carefully.
247 ISO Country Codes in an Excel 97-2003 (compatible) spreadsheet format easily save-able to CSV or whatever you want.
I made this as a start on implementing AJAX or whatever approach to localization, and since I'm not working on it, maybe some other(s) can use it toward a complete CIF library.
I intentionally named it with the number of countries in 'acknowledged existence' about 2 years ago; it may need to be re-checked against a current list on Wikipedia (where I got this).
Drupal/Ubercart: building the NEW globally-interconnected commercial infrastructure on this planet.