aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-06 08:17:55 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-06 08:17:55 -0500
commitdb0413bdb160b2437ae2c397add2f075ba46e822 (patch)
tree81b9699f44f430fe6158e2d420a465741273227d
parentAdd curly brace removed (diff)
downloadcsci4061-db0413bdb160b2437ae2c397add2f075ba46e822.tar
csci4061-db0413bdb160b2437ae2c397add2f075ba46e822.tar.gz
csci4061-db0413bdb160b2437ae2c397add2f075ba46e822.tar.bz2
csci4061-db0413bdb160b2437ae2c397add2f075ba46e822.tar.lz
csci4061-db0413bdb160b2437ae2c397add2f075ba46e822.tar.xz
csci4061-db0413bdb160b2437ae2c397add2f075ba46e822.tar.zst
csci4061-db0413bdb160b2437ae2c397add2f075ba46e822.zip
Add comment
-rw-r--r--P1/src/reducer.c2
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;