Stream reader and writer library.