/* create.c */
#include 
#include 

FILE *outfile;

int main (int argc, char *argv[])
  {
    int i,j,n;

    if (argc < 2) { printf("usage: create numrecs length\n"); exit(0); }
/*  open the files */
    outfile = fopen("x.x","w");
    if (!outfile) printf("File could not be created.\n"), exit(1);

    n = atoi(argv[1]);
    for (i=0; i < n; i++)
      {
        for (j = 0; j < atoi(argv[2]); j++)
          fprintf(outfile,"%c",rand()%26+97);
        fprintf(outfile,"\n");
      }
    close(outfile);
  }