How to save facts or rules into a file?

Jun 6, 2013 at 9:49 AM
Edited Jun 6, 2013 at 9:50 AM
The samples only showed how to load rules and facts from files, can someone tell me how to save the rules and facts into a file, sorry for my poor English...
Thanks in advance..