Add read/write utility for cocoa streams