Why was the creation of sacred texts important to the spread of Hinduism?

AThe texts described the ways Hindus could convert to Buddhism.
BThe texts directed Hindus to conquer other civilizations militarily and impose Hinduism on them.
CThe texts provided the basis for the eventual evolution of Hinduism into Buddhism.
DThe texts provided a formal written basis for Hinduism that other civilizations could study.