User Tools

Site Tools


jvs:cigal:manual:chapter3:import

CIGAL Reference Manual, Chapter 3 (Functions): IMPORT

IMPORT -- Load data variable from textfile

usage: varb = import(fnam,c0,c1,skip,seps,terms,lskip,lcount,flag,missingval)

Read values from a text file. The type of values (i.e., text strings or numbers) is determined from the type of the target variable (VARB). C0 and C1 are the first and last columns to read (default values are 0, meaning to read all columns). If C0 < 0, all initial blank spaces are included. If SKIP < 0, blank lines do not stop reading.

Default SEPS are “ \t,”.

Default TERMS are “;\n”.

[Stops on blank line if lcount is 0 (reads to EOF if lcount < 0).]

Missingval is used for missing numbers; default is 0, or MISSING_VALUE if missingval is any nonnumerical character string. Number of lines read is returned in r0.

 FLAG: 1 - parse quoted strings as single column (default);
                        omit quote characters
       2 - same as 1, but keep quote characters

See Also:
CIGAL Home, CIGAL Manual, Functions List, Manual Help

jvs/cigal/manual/chapter3/import.txt · Last modified: 2023/02/23 18:43 (external edit)