Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 13th, 2018
88
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
def read_file
file = File.new("vetor.txt","r")
file
end
def get_vector
text = read_file
vector = []
text.each_line("\n") do |line|
vector.push(line.chomp.to_i)
end
vector
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
blatt1_2aufgabe
VHDL | 2 min ago | 2.95 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 22 min ago | 0.39 KB
Untitled
PHP | 24 min ago | 2.17 KB
dfgdrhrdj
PHP | 38 min ago | 1.74 KB
lab 10
C++ | 2 hours ago | 7.57 KB
TestingM
JSON | 2 hours ago | 1.53 KB
𝐒𝐄𝐕𝐄𝐍
CSS | 3 hours ago | 3.44 KB
CC: GhoulMonitor
Lua | 3 hours ago | 0.39 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!