MatrixInt::LoadFromFile Method

void LoadFromFile(const DewString &FileName) const;

Reads the header information and the values array content from the file.

#NameTypeDescription
1FileNameconst DewString &
Remarks:

Reads the header information and the values array content from the file specified by FileName parameter.

Examples
#include "MtxVecInt.h"
#include "Units.MtxVecInt.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;

void Example()
{
    TMtxInt* b;

    CreateIt(b);
    b->SetIt(2, 2, DewArray<int>{0, 1, 3, 2});
    b->SaveToFile("test.Vec");
    b->LoadFromFile("test.Vec"); // Read header and values for b
    FreeIt(b);
}
See Also: MatrixInt::SaveToFile, MatrixInt::LoadFromStream
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler