Ouput data structure to specified path.