DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


ExportAsASCFile

Declaration: TDataTable.ExportAsASCFile (FName: string; Precision: integer): string;
The method ExportAsASCFile writes the contents of the data table along with all additional information (headers, etc.) to a readable ASCII text file. The format of the text is the same as used by the method ImportASCFile.

The parameter FName specifies the filename (default extension ASC). The method returns an error message string if any problem occurs during opening the file (e.g. 'file access denied' for read-only files). The parameter Precision 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 (due to rounding effects).