Guardian Programming Reference Summary for pTAL and TAL
Procedure Calls Summary (D-F)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
5-24
EDITREADINIT 
Prepares a buffer in the application program’s data area for subsequent calls to 
EDITREAD.
>= 0 Indicates that the reading of the file was successful. 
-1 End of file encountered.
-2 Error occurred while reading.
-3 Text file format error.
-4 Sequence error. 
-5 Checksum error. 
-6 Invalid buffer address. 
edit-controlblk, INT:ref:* input
buffer, STRING:ref:* output
bufferlen, INT:value input
sequence-num, INT(32):ref:1 output
status := EDITREADINIT ( edit-controlblk
 ,filenum
 ,bufferlen );
status, INT returned value
0 Successful (OK to read).
-1 End of file detected (empty file).
-2 I/O error.
-3 Format error (not EDIT file), or buffer length is incorrect.
-6 Invalid buffer address. 
edit-controlblk, INT:ref:* input
filenum, INT:value input
bufferlen, INT:value input










