Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=
- AS_CH9EX1:
- - Julia version: 1.2.0
- - Author: aussh
- - Date: 2019-09-11
- =#
- function readFile(filename)
- inFile = open(filename, "r")
- line = readline(inFile)
- while line != ""
- count = 0
- for letter in line
- if letter != ' '
- count += 1
- end
- end
- if count > 20
- println(line)
- end
- line = readline(inFile)
- end
- close(inFile)
- end
- readFile("words.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement