File Names
A filename is any valid HP-UX file name and is used in Qedit commands to identify a workfile for editing (Open, New, Text) or an external file to be accessed in some way (Add, Keep, List, Text and Use). Qedit accepts file names up to 240 characters long, containing underbars (_) and dashes (-). The following commands all contain valid file names:
/open qedt3p1.source
{open file for editing work}
/add 50.1 = abcd.pub
{copy in lines from a file}
/new qedt3p2.qedit
{create a new Qedit workfile}
/keep test.c
{convert workfile to Keep file}
/text /GREEN/BOB/temp-dash
/list /GREEN/BOB/temp_underbar
File names that include special characters might cause problems to Qedit. For example,
/Text file:name
Error: Extra or invalid character in Text command
If you run into this, you can use the $file keyword instead. The $file keyword can be used wherever a file name is expected such as in the Text, Add, List commands. The syntax is:
$file[=]"filename"
$File is a reserved keyword, which is followed by an optional equal sign and the file name enclosed in string delimiters. Without doing anything to the string, Qedit tries to open the specified file. The previous example now becomes:
/Text $file="file:name"
10 lines in file
![Home](rnd2hm_s.gif)
![Previous](rnd2pr_s.gif)
![Next](rnd2nx_s.gif)