I can't remember if this was a short story or from a film (or a dream).  The homeless (as I recall) tended to live underground and would have stacks of books near them.