Skip to content

Instantly share code, notes, and snippets.

@atroche
Created March 1, 2017 04:15
Show Gist options
  • Save atroche/5e8b27448c8309f8894755135f8cdce1 to your computer and use it in GitHub Desktop.
Save atroche/5e8b27448c8309f8894755135f8cdce1 to your computer and use it in GitHub Desktop.
FileReader fileReader = new FileReader("ten.json");
BufferedReader bufReader = new BufferedReader(fileReader);
int lines = 0;
while (bufReader.readLine() != null) {
lines++;
}
System.out.println(lines);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment