basic stream writer added

basic stream writer