Change csv file into html table

there is csv class showtable() function to change csv file into html
table,can i make it in ruby?

2010/6/1 Pen T. [email protected]:

there is csv class showtable() function to change csv file into html
table,can i make it in ruby?

Yes.

Kind regards

robert

how to do it ?

2010/6/1 Pen T. [email protected]:

how to do it ?

Open a file for writing, use a CSV library to read the CSV file, write
each record as HTML to the opened file (potentially using another
library, e.g. CGI or ERB) and be done. What did you try so far?

Cheers

robert

for example ,there is a csv file , two rows two coulums
2,3
4,5

how to write a ruby program with erb or cgi
to get the html file:

2 3
4 5

On 02.06.2010 06:40, Pen T. wrote:

for example ,there is a csv file , two rows two coulums
2,3
4,5

how to write a ruby program with erb or cgi
to get the html file:

You open your favorite text editor or IDE and type in all the commands
you need (i.e. as I indicated earlier) to get the program completed.

This is a public forum denoted to the discussion of Ruby topics - not
a free implementation service. If you need introductory material I
suggest you explicitly ask for it.

Cheers

robert