FPRINT

Purpose: Write text data or numeric values to a disk file.

Format:    FPRINT  text string

Notes:    text string  is a combination of text enclosed within quotes and variables. To include an actual quote () in the output string substitute it with the (`) character.  ASCII data is written sequentially for each subsequent  FPRINT  statement with each output line terminated with a new line character.  The PRINT_FILE  command must be executed prior to writing the first line of disk data.  If the file specified by the  PRINT_FILE  statement already exist,  then  the  FPRINT  command  appends data to that file.

Example:

# Assign data to 3 variables.

flt_value = 85.32
$textvar = "c:\fpimage\images\test-00.img"
int_value = 512

# Select a text disk file named 'filedata.txt'.
print_file filedata.txt

# Write 3 consecutive lines of ASCII data.
fprint flt_value
fprint $textvar
fprint int_value
exit

See Also:  FINPUT   INPUT_FILE   PRINT_FILE