• freopen("D:\\output.txt","w",stdout); fclose(stdout);
    • freopen("D:\\in.txt","r",stdin); fclose(stdin);