Writes the contents of an array to a fileint sm_fio_a2f(char *file_name, char *array_name);
- The name of the target file.
- The name of a Panther widget that serves as the source array.
sm_fio_a2fwrites the contents of the specified array to a file. The contents of each occurrence are written as a single line to the file.
vars fileName, retErr
/* get the file name sent from previous dialog */
receive DATA fileName
/* put array's contents into file */
retErr = sm_fio_a2f(fileName, "comments")
if retErr != 0
msg emsg "Error - error number :retErr"