You might look at my file system subs. I do what you are talking about in there. Also, since the CLAw uses those subs, there are some example files generated as saved files that are later loaded back into the CLAw. You can look at the resulting output.
Actually, if you go look at the quester (1.22), there is an sample CLAw saved file.