diff options
Diffstat (limited to 'P1')
-rw-r--r-- | P1/src/reducer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/P1/src/reducer.c b/P1/src/reducer.c index 7c5e8f2..f70c072 100644 --- a/P1/src/reducer.c +++ b/P1/src/reducer.c @@ -77,7 +77,7 @@ void writeFinalDS(int reducerID){ // Shove word and number of occurances in a file named word.txt char filename[BUFFSIZE] = ""; sprintf(filename, "output/ReduceOut/Reduce_%d.txt", reducerID); - FILE* fptr = fopen(filename, "a"); + FILE* fptr = fopen(filename, "a"); //append, not overwrite. fprintf(fptr, "%s %d\n", tempNode -> key, tempNode -> value); fclose(fptr); tempNode = tempNode -> next; |