#include #include using namespace std; //myfile_fflush1.cpp //int fflush( FILE *fp ); void readfile(char *); int main() { FILE * fp, *fp1; char buffer[40]; char *str1[] = { "This is a test with fflush " }; char *filename= "fflush_Text1.txt"; fp = fopen(filename, "wb"); if(fp==NULL) {cout<<"\n eror in opeing file"; exit(1);} fputs("this is fflush test",fp); fflush(fp); fclose(fp); cout<<"\n"; readfile(filename); /* fp1=fopen(filename,"w"); for(int i=0; i