ABC words: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 2,699: | Line 2,699: | ||
mut text :='' |
mut text :='' |
||
unixdict := os.read_file('./unixdict.txt') or {panic('file not found')} |
unixdict := os.read_file('./unixdict.txt') or {panic('file not found')} |
||
for line in unixdict.split('\n') { |
|||
if abc_word(line) == true {text += count++.str() + ': ' + line + '\n'} |
if abc_word(line) == true {text += count++.str() + ': ' + line + '\n'} |
||
} |
|||
} |
|||
println(text) |
println(text) |
||
} |
} |