nag_open_file (x04acc) opens a file for reading, writing or appending, and returns an associated file identifier.
nag_open_file (x04acc) 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 and
f12 which use the file identifier for input or output of data.
None.
Not applicable.
Not applicable.
None.
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.
None.