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

CSVWriter.new.md

File metadata and controls

30 lines (25 loc) · 1.14 KB

new CSVWriter

The constructor function is established to create a CSVWriter 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 csvWriter = new CSVWriter("input/test.txt", ",", "\"", "MS932");

API

CallingReturning
new CSVWriter (path)CSVWriter
new CSVWriter (path, separator)CSVWriter
new CSVWriter (path, separator, delimiter)CSVWriter
new CSVWriter (path, separator, delimiter, encoding)CSVWriter
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.