int numKeywords = header.getNumberOfCards();
String[][] values = new String[numKeywords][3];
Iterator it = header.iterator();
int n = 0;
while (it.hasNext()) {
HeaderCard card = (HeaderCard) (it.next());
String name = card.getKey();
String value = card.getValue();
String comment = card.getComment();
values[n][0] = name;
values[n][1] = value;
values[n++][2] = comment;
}