there is a slight difference in the files output by Brett's and mine.
I've compared the files with a hex editor before and after editing with both.
As far as i remember, they both came out identical to the original when the files were not edited.
If a value was changed or a line added then the outputs are slightly different.
Mine writes zeroes to the end of the file so that the final line is in the same format as all the others.
Bretts writes to the end of the last non-zero byte then stops.
Both these formats work perfectly in the game and both load in my editor.
However if I add a new line in my editor then the file will not load in Brett's editor at all afterward.
It seems to be something to do with the overall file size difference.