nag_example_file_io (x04aec) reads command-line arguments and returns either a file pointer or a file name depending on the argument
flag specified in
argv.
nag_example_file_io (x04aec) returns either a FILE pointer or the name of a file depending on the argument flag specified in
argv. If the argument
flag is either "-data" or "-results", a FILE pointer is returned for data input or output respectively. If the argument
flag is "-options", "-nag_write" or "-nag_read", a char pointer is returned in
fname to hold the name of an options file, a data output or a data input file.
None.
None.
Not applicable.
Not applicable.
None.
This program illustrates the use of nag_example_file_io (x04aec) to check for input and output file names on the command line, before making a call to
nag_1d_aitken_interp (e01aac).
None.