f = createObject('java','java.io.File').init(arguments.currentFilePath);
fr = createObject('java','java.io.FileReader').init(f);
br = createObject('java','java.io.BufferedReader').init(fr);
inputLine = br.readLine();
lineCount = 0;
while ( isDefined(inputLine) ) {
processLine(inputLine, getFileID());
lineCount = lineCount + 1;
inputLine = br.readLine();
}
br.close();
fr.close();
|