Constructor which returns a new MemoryFile object, using the given
storage (which must be a CharStorage) and mode. Valid
mode are 'r' (read), 'w' (write) or 'rw' (read-write). The last character
in this storage must be NULL or an error will be generated. This allow
to read existing memory. If used for writing, not that the storage might
be resized by this class if needed.