The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TVector, TIntVector
Declaration: function ExportAsASC (FName: string; Precision: integer; Comment: string): integer; { class TVector }
function ExportAsASC (FName: string; Comment: string): integer; { class TIntVector }

The method ExportAsASC writes the contents of the vector along with all additional information (headers, etc.) to a readable ASCII text. The format of the text is the same as used by the method ImportASC.

The method returns a zero value if everything is OK, or -1 if any problem occurs during opening the file (e.g. 'file access denied' for read-only files).

The parameter Precision (in the case of TVector) specifies the number of decimal places to be used in the text file. Note that the numeric values of a table will be altered if the precision for exporting is too low. The parameter Comment contains an arbitrary one-line comment.

Last Update: 2018-Jul-10