I've made an implementation of this program using a binary tree. It works fine, but I'd like to save my decision tree to the disk because I don't want to lose the result of my "teaching". Do I have to invent my own file format and write a parser for it or is there a more simple method? Where should I start? Any suggestions are welcome.