Dew MtxVec NET
TMtxVec.SaveToFile Method
Summary
Write object header and values to a file.

Class
TMtxVec

Declaration
Procedure SaveToFile(FileName: string; Append: boolean = False);

Description
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 TSample precision. (single or double).

NOTE: It is recommended you use a *.mtx extension when you're saving/loading matrix to/from file. Similarly, you should use a *.vec extension when you're saving/loading vector to/from file.

 See Also 
LoadFromFile 
SaveToStream 
LoadFromStream 

Example 1

var Mtx: TMtx; begin CreateIt(Mtx); try Mtx.SetIt(2,2,False,[3,1,-1,5]); Mtx.SaveToFile('c:\test.mtx'); // Write info and header for Mtx to file finally FreeIt(Mtx); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com