C++ M file Reader