How to use read and write for google chrome