Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 797 Bytes

CSVReader.readAllLines.md

File metadata and controls

33 lines (26 loc) · 797 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

CallingReturning
CSVReader . readAllLines()Array
CSVReader . readAllLines(CRLFCode)Array
ParametersTypeDescription
CRLFCodeString To define the code for line-feed. exp. \r\n, \n