How to convert a csv file to html table?

Hello friends,
I need to convert a csv file into html page in a table format.
Can anyone help me?
Thanks in advance.
Write a program to parse the csv, then write the data with html tags.

Note: HTML is just a text file
First of all find out the format of each and then see what needs to change between the CSV and the HTML.

Writing out a small example can be helpful in this:


CSV:

A, B, C
D, E, F

HTML:

<table>
<tr><td>A</td><td>B</td><td>C</td></tr>
<tr><td>D</td><td>E</td><td>F</td></tr>
</table>
Last edited on
Hi friends,
thanks for the replies. They helped me.
Regards.
Topic archived. No new replies allowed.