You can use the following library functions to read in information
from
z/OS® UNIX file system files:
- fread()
- fread_unlocked()
- fgets()
- fgets_unlocked()
- gets()
- gets_unlocked()
- fgetc()
- fgetc_unlocked()
- getc()
- getc_unlocked()
- getchar()
- getchar_unlocked()
- scanf()
- scanf_unlocked()
- fscanf()
- fscanf_unlocked()
- read()
- pread()
- vscanf()
- vscanf_unlocked()
- vfscanf()
- vfscanf_unlocked()
fread() is the only interface allowed for reading record I/O files.
See z/OS XL C/C++ Runtime Library Reference for more information on all of the above
library functions.
For z/OS UNIX low-level I/O, you can use the read() and readv() function.
See Low-level z/OS UNIX I/O.