opens a file for reading, writing or appending and returns an associated file identifier. This function is intended for use by callers of certain functions in Chapters e04
which use the file identifier for input or output of data.
This example illustrates how to open a file for
writing, write a line to the file using nag_write_line (x04bac)
and close the file using nag_close_file (x04adc)
. The file is then reopened, the line read back using nag_read_line (x04bbc)
, and closed again.