void SaveToFile(DewString FileName, bool Append = false);
Write object header and values to a file.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FileName | DewString | |
| 2 | Append = false | bool |
Remarks:
Write the header describing the calling object and the values array of the calling object to the file, specified by the FileName. If the file already exist, the data is overwritten by default. If Append is True, the data is appended to the end of the file. The data is always saved with the default precision precision (single or double).
- 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.
Note
It is recommended you use a .mtx extension when you're saving/loading matrix to/from file. Similarly, use .vec extension when you're saving/loading vector to/from file.
Declared in Dew::Math::TMtxVecBase · Dew.Math/MtxVecBase.h · Cross-compiler