z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


The fopen() function

z/OS UNIX System Services User's Guide
SA23-2279-00

The fopen() function recognizes and handles the difference between a ddname associated with a data set (DSN keyword) or with a path name (PATH keyword).

Example: Issue:
fopen("dd:FRED", "r+")

Result: The fopen() function takes the ddname FRED, determines if FRED refers to a ddname for a file or a data set, and opens it. Once a file is opened, fread() and fwrite() can access the data

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014