Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
30 lines (25 loc) · 1.14 KB

CSVReader.new.md

File metadata and controls

30 lines (25 loc) · 1.14 KB

new CSVReader

The constructor function is established to create a CSVReader object for event returning.

Sample

	//The content of the test.csv file is 
	//"A,B,C,D
	// 1,2,3,4
	// a,b,c,d"
	var csvReader = new CSVReader("input/test.txt", ",", "\"", "MS932");

API

CallingReturning
new CSVReader (path)CSVReader
new CSVReader (path, separator)CSVReader
new CSVReader (path, separator, delimiter)CSVReader
new CSVReader (path, separator, delimiter, encoding)CSVReader
ParametersTypeDescription
pathStringThe relative CSV file path to the storage folder.
separatorStringThe separator of the CSV file. The default value is ",".
delimiterStringThe delimiter of the CSV file. The default value is "\"".
encodingStringThe charset name of the CSV file. The default value is UTF-8.