TSparseMtx::LoadFromFile Method

void LoadFromFile(DewString FileName);

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

#NameTypeDescription
1FileNameDewString
Remarks:

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

  • In case of '.csv' extension a comma is used as a column delimiter for matrices.
  • In case of '.txt' extension a tab is used as a column delimiter for matrices.
  • For all other extensions, the expected format is binary.
Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;

void Example()
{
    TVec* b;

    CreateIt(b);
    b->LoadFromFile("airpass.vec"); // Read header and values for b
    FreeIt(b);
}
See Also: TSparseMtx::SaveToFile, TSparseMtx::LoadFromStream
Declared in Dew::Math::TMtxVecBase · Dew.Math/MtxVecBase.h · Cross-compiler