From: Djo Date: 2013-08-02T04:38:09+09:00 Subject: Re: Read column from text or csv file and append "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." 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 > > How would this be possible? > > -- > Posted via http://www.ruby-forum.com/. >