read write file complete