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

Latest commit

 

History

History
27 lines (21 loc) · 666 Bytes

TXTReader.readAllLines.md

File metadata and controls

27 lines (21 loc) · 666 Bytes

TXTReader.readAllLines

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

Sample

	//The content of the test.txt file is 
	//"12345678901234567890
	// 11111222223333344444
	// 99999777777777722222"
	var regFieldsDef="(.{5})(.{10})(.{5})";
	var txtReader = new TXTReader("input/test.txt", regFieldsDef, "MS932"); 
	var array = txtReader.readAllLines();	
//The array return value is
//[ ["12345","6789012345","67890"]
//  ["11111","2222233333","44444"]
//  ["99999","7777777777","22222"] ]

API

CallingReturning
TXTReader . readAllLines()Array