User Tools

Site Tools


jvs:cigal:manual:chapter6:r_fwrite

CIGAL Reference Manual, Chapter 6 (RealTime): r_fwrite

r_fwrite -- Write data to a file

usage: r_fwrite opflg eflag ltime Databuf nBytes Lunit [Asyncflag]

R_FWRITE is a REALTIME operator. It initiates a data transfer of NBYTES from the DATABUF variable to the open file specified by LUNIT. NBYTES is assumed to be a long integer value. LUNIT must have been previously set by a call to R_FOPEN. If LUNIT is missing it defaults to 1.

R_FWRITE normally operates synchronously, not finishing until the data transfer is finished. To perform an asynchronous read, make ASYNCFLAG non-zero. In that case you should issue a R_FWAIT operation before assuming that the data have all been read.

Note 1: If LUNIT is not an open file this operation returns immediately. If a previous asynchronous I/O operation was still pending, this operation will wait until that has completed before starting. This is therefore an automatic way to call a R_FWAIT operation.

Note 2: All REALTIME file I/O operations are performed asynchronously, regardless of the ASYNCFLAG; this allows multiple independent processing streams to continue while file data transfers are underway. The ASYNCFLAG option therefore only specifies whether this particular processing stream should wait until the I/O finishes

See Also:
CIGAL Home, CIGAL Manual, RealTime List, Manual Help

jvs/cigal/manual/chapter6/r_fwrite.txt · Last modified: 2023/02/23 18:43 (external edit)