# writefile

### (PRO) writefile(filePath, contents)

Write the <contents> to the specified file .

### (PRO) writefile(filePath, contents, append)

Write the <contents> to the specified file .

## Arguments

Argument | Data Type | Description
--- | --- | ---
filePath | String | Full path to the file to be created or appended to.
contents | String | The text to be written to the file.
append | boolean | DEFAULT is TRUE If TRUE, append <content> to the end of the file If FALSE, overwrite the file

## Returns

Nothing

## Description

Writes the data in the "content" string to the file specified by the file path. The data will be appended to the end of the file unless the append flag is set false.

## Examples

writefile("C:\myDir\myFile.txt", #myField) | Appends the contents of myField to the end of the file specified.

### See Also

readfile()