open to open file write to write file close to file