ES3Spreadsheet.Save
Description
Saves the spreadsheet to a CSV file.
Parameters
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. |
Examples
1 2 3 4 5 6 7 8 9 10 11 |
// 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"); |