doc: add code sample for WriteStream
Add a code example for WriteStream(alse explaining ws and
rs`) to compare and briefly explain with ReadStream.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines