Scanner scan;
            try {
                scan = new Scanner(new File(""));
                while (scan.hasNextLine()) {
                    scan.nextLine(); trim empty
                }
            }
            finally {
                if (scan != null) {
                    scan.close();
                }
            }


Published

09 November 2012