Number 1 doesn't make sense to me. Vector's don't have keys and string DictValue = Dictionary[doesNotExist]; doesn't make sense syntactically.

2 you open the file for writing and check for...