#include int main (){ freopen ("my.txt","w",stdout); printf ("This line is redirected to a file."); fclose (stdout); return 0;}