XenoGuard 4.0 Documentation

Clear Content

ActionStep Reference » Windows » File Handling » Csv » Clear Content

The ActionStep CSV Content Clear deletes all contents of the CSV file.


[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. Open the File Handling node.
  3. In the CSV node, select the Clear Content ActionStep.

Parameters:

The ActionStep has the following input parameters:


NAME DESCRIPTION
File
Specifies the location of the CSV file.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types
 [Variable, Parameter, Enum] 
Encoding
The encryption to be used for character encoding.

Allowed Values: ASCII, ANSI, UTF-8, UTF-8-BOM, Unicode

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Column Separator
The sign that separates each column of a CSV file.

Default Value: semi-colon (;)

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Warning A File Access Error occurs when the content is being cleared while the file is open. Make sure that the file being accessed is closed or not active.

Example 1 (Delete all contents of a CSV file):

This example creates a local variable named CSVFile with Text as its data type and stores the path of the CSV file.  The initial contents of the CSV file named Items.csv are then deleted in another ActionScript. After the content of the file was deleted, the File Read ActionStep showed no contents inside the Items.csv file. A notice is then displayed via Message Box.

See other CSV operations:

Read File
Read Value
Write Value
Save Buffer