memfs read and write