#include <stdio.h>
#include <string.h>

void cvt_ebc2asc();
void cvt_asc2ebc();

main()
{
   FILE *fp1,*fp2;
   char e[81],a[81];
   fp1 = fopen("ebc.dat","r");
   fp2 = fopen("asc.dat","w");
   while (!feof(fp1)) {
      if (fgets(e,sizeof(e),fp1)) {
         e[strlen(e)-1] = '\0';
         cvt_ebc2asc(a,e);
         fprintf(fp2,"%s\n",a);
      }
   }
   fclose(fp1);
   fclose(fp2);
}
