daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. def read_file
  2.     file = File.new("vetor.txt","r")
  3.     file
  4.   end
  5.  
  6.  
  7.   def get_vector
  8.     text = read_file
  9.     vector = []
  10.     text.each_line("\n") do |line|  
  11.       vector.push(line.chomp.to_i)
  12.     end  
  13.    
  14.     vector  
  15.   end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top