ES3Spreadsheet.Load

public void Load(string filePath, ES3Settings settings)

Description

Loads a CSV file into an ES3Spreadsheet.

Parameters

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

settings,”An ES3Settings specifying any non-default settings.”[/table]

Examples

C#

// Create a blank ES3Spreadsheet.
var sheet = new ES3Spreadsheet();
sheet.Load("spreadsheet.csv");
// Output the first row of the spreadsheet to console.
for(int col=0; col<sheet.ColumnCount; col++)
    Debug.Log(sheet.GetCell<int>(col, 0));

JS

// Create a blank ES3Spreadsheet.
var sheet = new ES3Spreadsheet();
sheet.Load("spreadsheet.csv");
// Output the first row of the spreadsheet to console.
for(var col=0; col<sheet.ColumnCount; col++)
    Debug.Log(sheet.GetCell.<int>(col, 0));