You are creating the file, and then importing the same file into the KeyValues structure again, creating a duplicate.
Quote:
KeyValues.ImportFromFile Method
Imports a file in KeyValues format. The file is read into the current position of the tree.
|
__________________