In early civilizations, writing was most commonly used for