#include void myread(); void main() { int i;FILE *fp; fp=fopen("randomnumber","w"); for(i=0;i<10000;i++) { fprintf(fp,"%d\n",rand()); } fclose(fp); } void myread() { int i,buf;FILE *fp; fp=fopen("randomnumber","r"); for(i=0;i<10;i++) { fscanf(fp,"%d\n",&buf); printf("%d = %d\n",i,buf); } fclose(fp); }