Add ability to write as well as read definition files.