...
| Code Block |
|---|
public static void eachLine(String stringpath, LineHandler handler) throws IOException { FileReader file = null; try { file = new FileReader("c:\\dynamic.ini"path); // Open the file. BufferedReader input = new BufferedReader(file); String line; while ((line = input.readLine()) != null) { handler.handleLine(line); } } finally { if (file != null) { file.close(); } } } |
...