Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

PXFREAD

POSIX Subroutine: Reads from a file.

Module

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.

See Also