#include void main() { FILE *fp; int c; fp = freopen( "file", "r", stdin ); while( (c = getchar()) != EOF ) putchar(c); fclose( fp ); }