#include <stdio.h>\x0d
main(c){char t[999],T[999];c=0;FILE*f=fopen("x","r");while(!feof(stdin))t[c++]=fgetc(stdin);t[c]=0;c=0;while(f&&!feof(f))T[c++]=fgetc(f);T[c-2]=0;puts(T);f?fclose(f):0;remove("x");f=fopen("x","w");fputs(t,f);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).