What it does
Opens a locked chest of a lock up to your skill's (see Lockpicking).
Into your book
You have it from its scroll, which Mary the mage sells; or from its scroll, which a scribe writes (how). A scroll let go onto your book writes the spell into it for good. How casting goes, step by step, is on Magic.
See also: The Book of Spells, Reagents, Scrolls and scribing