starting reading from .mem file