Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 672 Bytes

CSVReader.readAllLines.md

File metadata and controls

30 lines (23 loc) · 672 Bytes

CSVReader.readAllLines

The function to read all lines into a matrix of arrays.

Sample

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

//The array return value is
//["A","B","C","D"],
//["1","2","3","4"],
//["a","b","c","d"]

API

Calling Returning
csvReader. readAllLines ( ) Array
csvReader. readAllLines ( CRLFCode ) Array
Parameters Type Description
CRLFCode String To define the code for line-feed. exp. \r\n, \n