for (k = 0; k < 100; k++) {
 if (k) putchar(',');
 fprintf(fp, "%3d", value[k]);
}
putchar('\n');