/* scacalos.tc - 1/22/11, 3/6/2011 - tct /* decode / encode binary / readable messages /* motivated by a facebook post by Frank Scacalossi */ main [ char scac(13000),scaco(13000),mf(20),mfo(20),de,lf(1);int err,bytesread pl "enter file containing message to be decoded / encoded : ";gs(mf) ps "enter output file : ";gs(mfo) mf(strlen(mf))=mfo(strlen(mfo))=0 if ((err=fopen(1,mf,13000,1))!=0) [pl"open failed";exit] if ((err=fopen(2,mfo,13000,2))!=0) [pl"open failed";exit] bytesread=readfile mf,scac,scac+13000,1 ps "decoding binary or encoding readable (d/e) : ";de=getchar if de=='d' scacalos scac,scaco if de=='e' solacacs scac,scaco writefile mfo,scaco,scaco+strlen(scaco)-1,2 ] scacalos char scac(0),scaco(0) [int i,j,t(1500),u;char w(1) u=split t,scac," " for (i=0;i