public static int countLines(File file) {
		int totalLines = 0;
		try {
			Scanner in = new Scanner(new FileInputStream(file));
			String line;
			int index;
			while (in.hasNextLine()) {
				line = in.nextLine().trim();
				// 
				if (line.length() == 0) {
					continue;
				}
				// //ע
				if (line.startsWith("//")) {
					continue;
				}
				/* ע */
				index = line.indexOf("/*");
				if (index > -1) {
					totalLines += skipNotes(line, in);
					continue;
				}

				totalLines++;
			}
			in.close();
			return totalLines;
		} catch (IOException e) {
			return totalLines;
		}
	}