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

Latest commit

 

History

History
32 lines (26 loc) · 855 Bytes

CSVReader.loopAllLines.md

File metadata and controls

32 lines (26 loc) · 855 Bytes

CSVReader.loopAllLines

The function to loop all lines for the callback function calling.

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");
	csvReader.loopAllLines(callback);	// The function "callback" will be executed three times
function callback(aryField, index) {
	...
};

API

CallingReturning
CSVReader . loopAllLines(callback)Array
ParametersTypeDescription
callback(aryField, index)Function The function that is expected to execute line-by-line.
aryField : The array data.
index : The line number which counts from 0.