Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unless ARGV.size == 2
- STDERR.puts "Error: Incorrect number of arguements\n\nOK. Goodbye."
- else
- hash = {}
- puts "Processing: #{ARGV[0]} (input), #{ARGV[1]} (output)"
- in_file = File.new(ARGV[0], 'r')
- in_file.each_line.with_index do |line, idx|
- print line
- line.split(' ').each do |pair|
- key, value = pair.split(/:/)
- hash[key] = value
- end
- puts hash.inspect
- #Determine shape type
- #return data types
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement