/***************************************************************************/ /***************************************************************************/ # include # include # include # include /***************************************************************************/ long FileLength( FILE *fw ) { fpos_t Cur ; long L ; if( 0!=fgetpos( fw,&Cur ) ) throw( -1 ); if( 0!=fseek( fw,0L,SEEK_END) ) throw( -1 ); L = ftell( fw ); if( 0!=fsetpos( fw,&Cur) ) throw( -1 ); return (long )L ; } /***************************************************************************/ void main_trans( FILE *fw, char *Text1 ) { short i,j,L ; char *s1,*s2,*s3 ; char *t1,*t2,*t3 ; char Text[2000] ; strcpy( Text,Text1 ); L=strlen( Text ); for( i=j=0 ; i