read and write operations for character generator implemented