The LINELIMIT procedure stops execution of the program after a specified number of lines has been written into a TEXT file. Syntax: LINELIMIT( file_variable, n [[, ERROR := error-recovery]] ); The 'file_variable' is the name of the file variable associated with the TEXT file to which the limit applies. The 'n' is a positive integer expression that indicates the number of lines that can be written to the file before execution terminates. The 'error-recovery' specifies the action to be taken if an error occurs during execution of the routine. By default, after the first error, the error message is printed and execution is stopped. The file can be in any mode before LINELIMIT is called; the file mode does not change after LINELIMIT has been executed. VSI Pascal first uses environment-specific means to determine if there is a default line limit. If there is not environment-specific default, there is no default line limit. You can use a call to LINELIMIT to override the default. After the number of lines written into the file has reached the line limit, program execution terminates unless the WRITELN procedure that exceeded the line limit includes the ERROR := CONTINUE parameter. See the "HP Pascal Language Reference Manual" for a complete description of the LINELIMIT procedure.