next up previous contents
Next: Modification
Up: Group Expressions
Previous: Group Expressions

Indirection

It is sometimes convenient to store strings in a text file which specify the objects to be used. The name of the text file can then be given in response to a prompt for a group expression, rather than giving a long list of explicit values. This is done by preceeding the name of the text file with an up-arrow (``^'') character. For instance, the group expression ``^VALUES.DAT'' would result in the file VALUES.DAT being opened and the strings read from the file. Each line within the file is considered to be a group expression, and is processed in the same way as a group expression supplied directly. In particular, a text file may contain references to other text files. If the file VALUES.DAT contained the following two lines:

A,B,C
D,^NEWFILE.DAT

The the strings A, B, C and D would be returned to the application, and in addition the file NEWFILE.DAT would be searched for further strings. This nesting of text file can go down to seven levels. Text files may also contain comments. Anything occurring after a ``#'' character is ignored. To ignore an entire line the # character must be in column 1 (any blanks in front of the # character are considered to be significant).



next up previous contents
Next: Modification
Up: Group Expressions
Previous: Group Expressions

IRAS90 --- IRAS Survey and PO Data Analysis Package --- Reference Guide
Starlink User Note 163
David S. Berry, W Gong, D C Parsons
19 February 1995
E-mail:ussc@star.rl.ac.uk

Copyright © 2008 Science and Technology Facilities Council