From: Stephen Smith <4fires@...> Date: 2007-04-18T00:58:45+09:00 Subject: Re: text processing library ------=_Part_70014_8421331.1176825523084 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline @Botp, That's right up my alley... Here's where I'm headed. Since CSV file structure is a bit like vanilla icecream, I'd like to provide a file structure with more complexity or "flavor" as an input, along with some CSV'd data. That way I can read in the structure and the data separately an= d get my data out in the format I want. My inspiration is deBabelizer, but also now simply some kind of String#pack. On 4/17/07, Pe=F1a, Botp wrote: > > From: Stephen Smith [mailto:4fires@gmail.com] : > # go from csv to > # batch file automagically, and just writing a one-off for this one file > # format seems like a total waste of time. > # There are a bizillion of these formats out there, and I have > # to imagine > # spooning csv files into yet another format is pretty common. > # I'm wondering > # if Ruby already has a batch file library, something like > # text-format.rb only > # more useful? > > just in case you'd want to start anew, try getting some ideas fr > 1. http://www.devsource.com/article2/0,1895,1928561,00.asp > 2. http://fastercsv.rubyforge.org/ > > kind regards -botp > > > ------=_Part_70014_8421331.1176825523084--