add file write examples