#include <stdio.h>
#include <stdlib.h>
int main( )
{
int i;
FILE *fp;
fp=fopen("a.mp100","w");
if (!fp)
{
printf("error!");
exit(1);
}
for (i=0;i<10;i++)
fprintf(fp,"%d",i);
fclose(fp);
}
#include <stdio.h>
#include <stdlib.h>
int main( )
{
int i;
FILE *fp;
fp=fopen("a.mp100","w");
if (!fp)
{
printf("error!");
exit(1);
}
for (i=0;i<10;i++)
fprintf(fp,"%d",i);
fclose(fp);
}