There should only be one entry in the file for each variable. Did you finish out CS1 more than once? It might be appending to the file instead of overwriting it, but I don't that that should be happening. Will double-check.
Edit: just double-checked and it is indeed just overwriting the file as intended. There shouldn't be any duplicated values.