Add example for write file and confirm of exist file