In the early Middle Ages many monasteries had a scriptorium. This was a place where texts of all kinds were written and copied. All of the work was done by hand. This may actually be one of the first uses of a room as an office.