Tried to solve problems with streams. Failed. I need some mechanism for when a stream is read & written to by some program, to have to cursors: one reading, and one writing.