Hi, I have a pipe-delimited file that I want to read from. As I read each line of file, I tokenize it and put each token in an Object[][]. Everything works fine, the only problem is that it taks too long to read whole file. Is there a way to speed up this proccess? Code is below.
thanks, webmacaco code: -------------------------------------------------------------------------------- grid = file to read from example of grid: - programName|Files|Files|1|1|1|1|1|1|0|1|1|1|1|1|1|1|1|1|0 - total lines: 245 - total tokens: 4900 code for reading file --------------------- Object[][] tableData = new Object[rowNames.size()][columns.length]; String data = ""; boolean bool; String columnLine = ""; int i,j; for(i = 0,j = 2; i < rowNames.size(); i++,j++){ columnLine = grid.getLine(j); for(int k = 0,m = 4; k < columns.length; k++,m++){ data = grid.getToken(columnLine,m); tableData[i][k] = new Boolean(data.equals("0")?false:true); } } _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing