read write file in External memory