Advertisement
Guest User

Untitled

a guest
Aug 27th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.20 KB | None | 0 0
  1. all_list = []
  2.  
  3. a1, a2 = ARGV
  4. a1 == "-o" and a2.size > 0
  5. File.open(a2) { |file|
  6.     while line = file.gets
  7.         all_list << line.split('%').chomp
  8.     end
  9. }
  10.  
  11. print "type a number: "
  12. number = gets.to_i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement