Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Created August 13, 2020 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexDaniel/be99d9f930b7307fbca70127d53271a7 to your computer and use it in GitHub Desktop.
Save AlexDaniel/be99d9f930b7307fbca70127d53271a7 to your computer and use it in GitHub Desktop.
#!/usr/bin/env julia
fp = open("longfile");
chars = 0
for line in eachline(fp)
global chars
chars += length(line)
end
close(fp)
println(chars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment