To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Display Modes
Old Jul 15th, 2005, 09:18 AM   #1
Cyber-Drugs
Lively Member
 
Join Date: Jul 05
Location: England
Posts: 79
Cyber-Drugs is on a distinguished road (10+)
Resolved [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 :-/
Cyber-Drugs is offline   Reply With Quote
Old Jul 15th, 2005, 10:41 AM   #2
jmcilhinney
.NUT
 
jmcilhinney's Avatar
 
Join Date: May 05
Location: Sydney, Australia
Posts: 61,542
jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)
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.
jmcilhinney is online now   Reply With Quote
Old Jul 15th, 2005, 10:43 AM   #3
Cyber-Drugs
Lively Member
 
Join Date: Jul 05
Location: England
Posts: 79
Cyber-Drugs is on a distinguished road (10+)
Re: Messy VB.NET

Perfect!

Going to try it out now.
Cyber-Drugs is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:23 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.