-
[RESOLVED] Messy VB.NET
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 :-/
-
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.
-
Re: Messy VB.NET
Perfect!
Going to try it out now. :)