Jeszcze usunięta jakaś stara wersja dictionary.rb.
This commit is contained in:
parent
ea72ee4a56
commit
36a695dff4
@ -1,14 +0,0 @@
|
||||
txt = open("keywords.txt")
|
||||
|
||||
filenames = ["actions.txt", "directions.txt", "movement.txt"]
|
||||
dictionary = {}
|
||||
|
||||
txt.each_line do |line|
|
||||
filenames.each do |name|
|
||||
if File.read(name).include?line
|
||||
dictionary[name.chomp('.txt')] = line.chomp("\n")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
puts dictionary
|
Loading…
Reference in New Issue
Block a user