SA_WriteEndOfFile


 

SA_WriteEndOfFile outputs an end of file or truncates the file to the specified position.

int SA_WriteEndOfFile ( SA_FH TxtFH, u32 record );

or

int SA_WriteEndOfFile32 ( SA_FH TxtFH, u32 record );

Parameters:
TxtFH
The handle of the previously opened or prepared text file.
record
The record number for the new end of file.

Note the following:

  1. Function return codes are as follows:

  2.  

    Value

    Meaning

    1

    Success.

    -nn

    Error as described in Sunaccess Errors

     

  3. Use SA_WriteEndOfFile32 for 32 bit applications such as Visual Basic 6.0.

 



Sunaccess Reference SA_Sort