The Text Parser adapter can do either of the following:
The Text Parser adapter provides the following text parsing tools:
The general text parser and the fast parser are general-purpose text parsers that you can configure to perform the necessary parsing. You can use the general-purpose text parsers to write the value of a parameter into a file or to read data from a file and use the data to set the value of a parameter. The parameter can be a single value (scalar parameter) or an array of values (array parameter). In addition, you can use the general-purpose text parsers to copy data from one file to another file, or you can use them to look up reference data in a read-only file. If necessary, data can be read from and written to the same file. The Text Parser adapter can process multiple files at one time. The general parser is recommended for most models because it is the most powerful and the most flexible parsing tool. The fast parser is preferable if you are reading or writing large arrays, and you can operate within the limitations of the fast parser. The fast parser is also preferable if you are working with large files, because you can use markers to operate on only small portions of the file. |