Flash memory read/erase/write