add an example to write content to file with stream