add the file write demo