RecordWrite()

Previous Next

Writes the contents of the current record to the specified file. If the file already exists the records will be appended to the file. The columns are separated by the specified column-separator string. If not specified the column-separator defaults to a space. Each record is placed on a new line.

If the file cannot be opened for writing (for example, write-protected or wrong path specification), no warning is displayed and no write occurs.

Syntax

RecordWrite(<filename>[, <col_separator>])

Parameters

filename

The name of the file to which you want to write the contents of the record.

col_separator

The string that is used to separate the columns.

Example

RecordWrite('C:\MY FILE.TXT',',')