Generic i/o code for use when reading and writing data to the network, to databases, and to files.