src/find.c
//prints on a file the report returned from the "execute()" function.
prints on a file the report returned from the "execute()" function.
prints on a file the report returned from the " execute () " function .
void writeFile(fWord *w, fWord *wordHead, fPath *pathHead, const char * outputFile){
    FILE *fOutput;
    fOutput = freopen(outputFile, "w", stdout);
    if(fOutput == NULL){
        fprintf(stderr, "Problem while creating the file %s, exiting . . .\n", outputFile);
    	exit(1);
    }
    print(w, wordHead, pathHead);
    fclose(fOutput);
}
void writeFile ( fWord * w , fWord * wordHead , fPath * pathHead , const char * outputFile ) { FILE * fOutput ; fOutput = freopen ( outputFile , " " , stdout ) ; if ( fOutput == NULL ) { fprintf ( stderr , " \n " , outputFile ) ; exit ( 1 ) ; } print ( w , wordHead , pathHead ) ; fclose ( fOutput ) ; }
prints on a file the report returned from the "execute()" function.
prints on a file the report returned from the " execute () " function .