#include int main(void) { FILE *f, *f2; f = fopen("testfile","w"); f = freopen("testfile","w+",f); fflush(f); return 0; }