|
|
#1 |
|
Lively Member
Join Date: Jul 05
Location: England
Posts: 79
![]() |
I have some CSV files, and I need to make an HTML report out of them...
I have made up the structure of the HTML files, but Im not too sure on how to read up all the information from the CSV files... The files are tab delimited, and I basically just need to know the following: Reading information from CSV files into Variables Outputting variables to HTML/TXT files Anyone able to help me out here? I tried googling it, but all I keep finding are ASP.NET solutions :-/ |
|
|
|
|
|
#2 |
|
.NUT
Join Date: May 05
Location: Sydney, Australia
Posts: 61,542
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: Messy VB.NET
You would read using StreamReader and calling its ReadLine method to get a line of text. You would then seperate the individual values by calling Split(Convert.ToChar(Keys.Tab)). As for the output, I don't know if there is a more efficient way but I gues you could have a template that you read in and then use a loop to write values to table cells. You would use a StreamWriter to save the output to a file.
|
|
|
|
|
|
#3 |
|
Lively Member
Join Date: Jul 05
Location: England
Posts: 79
![]() |
Re: Messy VB.NET
Perfect!
Going to try it out now.
|
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|