monster: Agreed, for reading/writing path to file, that's perfect. For the rest of the question, as it's supposed to be an exporter (if I get it right), some reading/writing in a custom format is necessary anyway. In that case, something like this would be a better approach (from the top of my head, untested): try…