>>553
ありがとうございます!

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

であってますか?