|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....|
|Home MathPack DataTable Methods ReadFromASC|
|See also: ImportASC, ReadHeaderOfASC, Format of ASC data file|
The function ReadFromASC reads data from a data source formatted in ASC Format. In contrast to the method ImportASC, the function ReadFromASC allows to position the read data within the existing table; it is available in three versions: version  reads from a text file, version  from a stream, and version  from the Windows clipboard.
The parameter FName defines the name of the file to be read (version ), the parameter Instream specifies the stream to be read from (version ). The parameters PosX and PosY determine the first cell (upper left corner) where to store the read data. The boolean parameter ReplaceIDs determines whether the column and row identifiers, and the measurement scale types are to be replaced by the new ones. Any excess data which do not fit into the data table are discarded.
The function ReadFromASC returns the following error codes: