Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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();
		}
	}
}

...