how to parse the textfile like
name id
name id
and save in an array of arrays in ruby.
So far i have:
content = []
File.open("my/file/path", "r").each_line do |line|
person << line.chop
end
It gives the output as:
"name\tID", "name2\tID" ....
this should work:
EDIT: to create separate arrays do this: