Code example for LineNumberReader

Methods: getLineNumber, skip

0
		return fileNames;
	} 
	public static int getLineCount(String path){
		LineNumberReader lnr=null;
		try { 
			lnr = new LineNumberReader(new FileReader(new File(path)));
			lnr.skip(Long.MAX_VALUE);
		} catch (FileNotFoundException e1) {
			// TODO Auto-generated catch block 
			e1.printStackTrace();
		 } catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		}   
		if(lnr == null)
			return 0; 
		return lnr.getLineNumber();
	} 
	 
	public static void writeObjectToFile(String filePath,Object object){
		  try {  
	            FileOutputStream outStream = new FileOutputStream(filePath);