[comp.misc] a program to fix files messed up by ascii ftp.

gwoho@nntp-server.caltech.edu (g liu) (12/07/90)

this program fixed a file i send by ascii ftp. it removes one char after
each 13 it finds. ftp sometimes seems to add a 0 after each 13, it depends
on where the file is transmitted. is this the only thing that ANY connection
will ever do to a binary file send via ascii?
 
main()
{
int i;
while ((i=getchar()) !=-1)
if (putchar(i) == 13)
getchar();
}

gwoho liu.