Advertisement
AustinShyd

Untitled

Sep 12th, 2019
1,798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 0.47 KB | None | 0 0
  1. #=
  2. AS_CH9EX1:
  3. - Julia version: 1.2.0
  4. - Author: aussh
  5. - Date: 2019-09-11
  6. =#
  7.  
  8. function readFile(filename)
  9.     inFile = open(filename, "r")
  10.     line = readline(inFile)
  11.     while line != ""
  12.         count = 0
  13.         for letter in line
  14.             if letter != ' '
  15.                 count += 1
  16.             end
  17.         end
  18.         if count > 20
  19.             println(line)
  20.         end
  21.         line = readline(inFile)
  22.     end
  23.     close(inFile)
  24. end
  25.  
  26. readFile("words.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement