I'm trying to use a ruby script to read a column of data from a single
text file or csv and put it into an array which i can print out and also
append "varchar," after each hash entry.
For example
if i had
test
12
312
soon
fast
bob
I want it to turn into
bob varchar, 12 varchar, 312 varchar, soon varchar, fast varchar, bob
varchar
Place text into an array and make varchar a constant zap
···
Sent from my iPhone
On Aug 1, 2013, at 10:00 AM, "Talal B." <lists@ruby-forum.com> wrote:
Hi Guys,
I'm trying to use a ruby script to read a column of data from a single
text file or csv and put it into an array which i can print out and also
append "varchar," after each hash entry.
For example
if i had
test
12
312
soon
fast
bob
I want it to turn into
bob varchar, 12 varchar, 312 varchar, soon varchar, fast varchar, bob
varchar
I'm trying to use a ruby script to read a column of data from a single
text file or csv and put it into an array which i can print out and also
append "varchar," after each hash entry.
For example
if i had
test
12
312
soon
fast
bob
I want it to turn into
bob varchar, 12 varchar, 312 varchar, soon varchar, fast varchar, bob
varchar