| Syntax Color Legend |
|---|
| Command |
| Mandatory parameter |
| Optional parameter |
| Mandatory keyword |
| Optional keyword |
WRITEFILE (<File id>, <File Layout>)
Writes the specified file layout to the specified text file as a single line.
None
| Parameter | Description |
|---|---|
|
<File id> |
Identifier that refers to the file that is to be allocated by the WRITEFILE command. This identifier cannot be used for the WRITEFILE and the file functions ADDREC, DELETEREC, LOCATE, UPDATEREC or READ at the same time. This means that if you also want to use these functions, you have to do this through another <File id>. |
| <File Layout> | Specifies the layout to be used to organize the allocated textfile. |
The first call to WRITEFILE will by default overwrite existing files, further consecutive calls to WRITEFILE will append to the file. To append to an existing file, the first call to WRITEFILE will have to be preceded by a <File id>.APPEND() command, see File Functions.
writefile (fid_customers, flay_customers)
write (file_a, rec_a)