Hello,
I have a shell script which populates records in a flat file. I have a
java program that has to read in those records and process them.
File file = new File("test");
FileInputStream fis = null;
BufferedInputStream bis = null;
DataInputStream dis = null;
String cdr = null;
try {
fis = new FileInputStream(file);
bis = new BufferedInputStream(fis);
dis = new DataInputStream(bis);
while (dis.available() != 0) {
cdr = dis.readLine();
(new
Thread(new CreditCalculator(cdr))).start();
//thread1.start();
System.out.println("One thread started "+cdr);
}System.out.println("Ended while loop\n");