basic: add registry read example

Based on http://www.oooforum.org/forum/viewtopic.phtml?t=77031