This is the meaning of the verse “Your righteousness shall remain forever” (Psalms 111:9). Which act of righteousness remains forever? Giving charity to compose holy books, to publish and disseminate them worldwide.
This is an eternal mitzvah, for the Torah then remains accessible for all generations to come!
(Likutey Halachos, Birkhot HaShachar 5,36)