Writing and education is one of the oldest human skills. For Ancient Near East we have evidence from at least two historical regions - Mesopotamia and Israel.
This article deals with the differences in access to education and their connection.