#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
#define ll long long
int main()
{
char file_name[200]="C:\\Users\\165226\\Desktop\\cs.txt";
FILE * fp=fopen (file_name, "w") ;
int c;
if(NULL==fp)
{
printf ("Failed tO open the file !\n");
return 0;
}
char str[5];
for(int i=1;i<=10000000;i++)
{
str[0]=(rand()%26+'a');
str[1]=',';
int p=rand()%100;
if(p>9)
{
str[2]=p/10+'0';
str[3]=p%10+'0';
}
else
{
str[2]=p+'0';
}
int len=strlen(str);
fwrite(str,len,1,fp);
fputc(10,fp);
}
fclose(fp);
}