add openfile readfile write file example