Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual—522629-013
16-13
WRITE^FILE Procedure
WRITE^FILE Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Example
Related Programming Manual
Summary
The WRITE^FILE procedure writes a file sequentially. The file must be open with write 
or read/write access.
WRITE^FILE is a sequential I/O (SIO) procedure and should be used only with files 
that have been opened by OPEN^FILE. 
Syntax for C Programmers    
Syntax for TAL Programmers    
Parameters 
error returned value            
INT
is a file-system or sequential I/O (SIO) error indicating the outcome of the write.
If abort-on-error mode, the default case, is in effect, the only possible values for 
error are:
0 No error
#include <cextdecs(WRITE_FILE)>
short WRITE_FILE ( short _near *file-fcb 
 ,short _near *buffer 
 ,short write-count 
 ,[ short reply-error-code ]
 ,[ short forms-control-code ]
 ,[ short nowait ] );
error := WRITE^FILE ( file-fcb ! i
 ,buffer ! i
 ,write-count ! i
 ,[ reply-error-code ] ! i
 ,[ forms-control-code ] ! i
 ,[ nowait ] ); ! i










