Intel® Fortran Compiler 17.0 Developer Guide and Reference
POSIX Subroutine: Reads from a file.
USE IFPOSIX
CALL PXFREAD (ifildes,buf,nbyte,nread,ierror)
ifildes |
(Input) INTEGER(4). The file descriptor of the file to be read from. |
buf |
(Output) Character. The buffer that stores the data read from the file. |
nbyte |
(Input) INTEGER(4). The number of bytes to read. |
nread |
(Output) INTEGER(4). The number of bytes that were read. |
ierror |
(Output) INTEGER(4). The error status. |
If successful, ierror is set to zero; otherwise, an error code.
The PXFREAD subroutine reads nbyte bytes from the file specified by ifildes into memory in buf. The subroutine returns the total number of bytes read into nread. If no error occurs, the value of nread will equal the value of nbyte.