Skip to main content
Version: 6.x

Write file (WRITE)

The write file operator creates an action which reads a file from the value of some property and saves it to the defined source.

The source is set as a property whose values are instances of string classes. The following types of data sources (URLs) are supported: FILE, FTP, SFTP

Language

To declare an action that writes a file, use the WRITE operator.

Examples

loadAndWrite ()  {
INPUT f = FILE DO {
WRITE f TO 'file:///home/user/loadedfile.csv' APPEND;
WRITE CLIENT f TO '/home/user/loadedfile.txt';
WRITE CLIENT DIALOG f TO 'loadedfile';
}
}