International best-selling author Lee Child has visited prisoners as part of a scheme to raise literacy levels inside jails.