next up previous 204
Next: RIO_WRITE - Write a record to a direct access file
Up: Routine Descriptions
Previous: RIO_OPEN - Open a direct access file


RIO_READ - Read record from direct access file

Description:
Read the specified unformatted record from the file with the given file descriptor.

Invocation:
CALL RIO_READ( FD, RECNO, NCHAR, BUF, STATUS )

Arguments:

FD = INTEGER (Given)
The file descriptor.
RECNO = INTEGER (Given)
Expression giving the number of the record to be read.
NCHAR = INTEGER (Given)
Expression giving the buffer size
BUF = BYTE( NCHAR ) (Returned)
A byte array to receive the record.
STATUS = INTEGER (Given and Returned)
The global status.



next up previous 204
Next: RIO_WRITE - Write a record to a direct access file
Up: Routine Descriptions
Previous: RIO_OPEN - Open a direct access file

FIO/RIO FORTRAN file I/O routines
Starlink User Note 143
P M Allan
A J Chipperfield
20 July 2001
E-mail:starlink@jiscmail.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils