summaryrefslogtreecommitdiff
path: root/select-from
diff options
context:
space:
mode:
Diffstat (limited to 'select-from')
-rwxr-xr-xselect-from4
1 files changed, 2 insertions, 2 deletions
diff --git a/select-from b/select-from
index e06e4fb..0ccfeac 100755
--- a/select-from
+++ b/select-from
@@ -11,8 +11,8 @@ opts = Optimist::options do
end
accept = {}
-f = ReadFile.new opts[:index]
-f.readlines_strip.each { |line|
+f = File.open opts[:index]
+f.each_line { |line|
i = line.strip.to_i
accept[i] = true