add an example to read file with stream way
add an example to write string to file
add an example to write string to file with synchronous way