Books and a Magic Lamp

I'm not sure if this is saying studying is magic, or you should study the magic arts, or that you can read all about Aladdin and his stories in books, or what this is trying to say. Rub this lamp and get a genie?!