Function WriteLn

  • Writes to a text file and adds an end-of-line marker.

    Writeln is an extension of the Write procedure, as it is defined for text files.

    The syntax shown here for the Writeln procedure is illustrates that WriteLn can take a variable number of arguments.

    After executing Write, Writeln writes an end-of-line marker (line feed or carriage return/line feed) to the file.

    If F is omitted, the global variable Output is used to access the processed standard input file.

    Parameters

    • OptionaloutFile: any

      optional output file, otherwise uses standard output

    • Rest...arg: any

      any number of arguments to write

    Returns void