Good evening!
Is there a more efficient way to get record counts other than actually reading each record into the buffer, ie:
lineu = textReader.readLine?
Thanks again!
bc
if(filename.indexOf(".TXT.out")>-1 && typ.equals(".TXT.out") )
{
try
{
BufferedReader textReader = new BufferedReader(new FileReader(filename));
String lineu = null;
while ((lineu = textReader.readLine()) != null)
{
if(filename.indexOf("BQ")>-1) rcqcnt++;
if(filename.indexOf("XS")>-1) rcscnt++;
if(filename.indexOf("MS")>-1) rmstrcnt++;
read_cnt++;
}
textReader.close();
System.out.println(filename+" "+read_cnt);
}
catch(Exception e){System.out.println("reading excpection xx:"+e);}
}
}