CSV

Read and Write to CSV files.

Read Files

Select or Upload a CSV File

When the CSV module is activated, the default setitng is to read a file. Reading files allows you to import columns into WayScript as variables.

Columns Appear

Once a csv is selected, the csv will populate on the page. Notes: The 'Ignore Headers' checkbox can be used to prevent WayScript from pulling in column headers if they exist in the file. Row 1 in this image shows an example of headers that I might want to ignore.

Import Columns

In order to import a column as a variable, the column must be labelled. Then, the column will appear under variables.

Write Files

Choose A File To Write Data

Pick a file to write or create a new file.

Include Headers

If this is checked, the variable name will be written as the first row of each column. This is useful for others to understand what data lies beneath it.

Write Mode

Add To File: every time the program runs, new rows of data will be added to the bottom of the csv Replace File: every time the program runs, the file will be wiped clean before the program runs.

Write Your Columns

You need to assign values to columns by pressing the + button under add your variables. Then the values of these variables will be written to your csv when your program runs. You can add as many columns as you would like.