#include<stdio.h>

void main(void)

{

 int i,score[10]={59,100,69,88,28,55,76,95,70,63};

 FILE *fp;

 

 fp=fopen("score.dat","w");

 if(fp==NULL)

    printf("Open Error\n");

 else

    {

     printf("Open Success\n");

     for(i=0;i<10;++i)

        fprintf(fp,"%d\n",score[i]);

     fclose(fp);

    }

}