VectorInt::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()
{
    TVecInt* b;

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