From 36a695dff46c1f7bc2855448acf477904db6e54a Mon Sep 17 00:00:00 2001 From: Michal Date: Sun, 11 Dec 2016 14:40:33 +0100 Subject: [PATCH] =?UTF-8?q?Jeszcze=20usuni=C4=99ta=20jaka=C5=9B=20stara=20?= =?UTF-8?q?wersja=20dictionary.rb.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dictionary.rb | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 dictionary.rb diff --git a/dictionary.rb b/dictionary.rb deleted file mode 100644 index ae99fe2..0000000 --- a/dictionary.rb +++ /dev/null @@ -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