Please enable JavaScript to view this site.

ESL Documentation

The Output subroutines allow you to create a file on disk. The WriteString() subroutine outputs a string value to a file. The WriteRecord( ) subroutine outputs the variables specified by the record definition to a file. The WriteByte( ) subroutine outputs a single byte contained in the lowest order byte of an integer variable to a file, which can be used to include special characters, such an a NULL, in a file. The WriteWord( ) subroutine outputs a 32 bit "Word" contained the the low order bytes of an integer to a file, which can be used to include offset pointers within the file.

 

You may note that the source string can contain embedded newline characters, and the record can contain strings that have embedded newlines as fields, so that a single call to an Output subroutine can result in several lines being written to the file. Use \n\r to separate lines.