Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!elroy.jpl.nasa.gov!jarthur!nntp-server.caltech.edu!gwoho From: gwoho@nntp-server.caltech.edu (g liu) Newsgroups: comp.misc Subject: a program to fix files messed up by ascii ftp. Message-ID: <1990Dec6.203113.8225@nntp-server.caltech.edu> Date: 6 Dec 90 20:31:13 GMT Organization: California Institute of Technology, Pasadena Lines: 14 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. Brought to you by Super Global Mega Corp .com