Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 636 Bytes

CSVWriter.writeAllLines.md

File metadata and controls

35 lines (28 loc) · 636 Bytes

CSVWriter.writeAllLines

The function to write all lines into the file.

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("output/test.txt", ",", "\"", "MS932");
var ary = [
	["Z,X,C,V"],
	["Q,W,E,R"]
];
csvWriter.writeAllLines(ary);

//The content of the test.csv file becomes:
//"A,B,C,D
// 1,2,3,4
// a,b,c,d
// Z,X,C,V
// Q,W,E,R"

API

Calling Returning
csvWriter. writeAllLines ( ary ) void
Parameters Type Description
ary Array The matrix of arrays that is expected to be written.