ES3Spreadsheet.Save

public void Save(string filePath, ES3Settings settings, bool append)

Description

Saves the spreadsheet to a CSV file.

Parameters

[table th=”0″]filePath,”The name or path of the file you want to create or append to.”

settings,”An ES3Settings specifying any non-default settings.”

append,”If true, the cells will be appended to the end of an existing spreadsheet if it already exists.”[/table]

Examples

// Create a blank ES3Spreadsheet.
var sheet = new ES3Spreadsheet();

// Save some values into the spreadsheet.
sheet.SetCell(0,0, "hitpoints");
sheet.SetCell(1,0, 12);
sheet.SetCell(0,1, "position");
sheet.SetCell(1,0, transform.position);

// Save the file to a CSV.
sheet.Save("myData.csv");