Intel® Fortran Compiler 16.0 User and Reference Guide
POSIX Subroutine: Writes to a file.
USE IFPOSIX
CALL PXFWRITE (ifildes,buf,nbyte,nwritten,ierror)
ifildes |
(Input) INTEGER(4). The file descriptor for the file to be written to. |
buf |
(Input) Character. The buffer that contains the data to write into the file. |
nbyte |
(Input) INTEGER(4). The number of bytes to write. |
nwritten |
(Output) INTEGER(4). The returned number of bytes written. |
ierror |
(Output) INTEGER(4). The error status. |
If successful, ierror is set to zero; otherwise, an error code.
The PXFWRITE subroutine writes nbyte bytes from the storage buf into a file specified by file descriptor ifildes. The subroutine returns the total number of bytes read into nwritten. If no error occurs, the value of nwritten will equal the value of nbyte.