illustrates reading and writing text data