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
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Jul 15th, 2005, 10: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, 11:41 AM   #2
jmcilhinney
.NUT
 
jmcilhinney's Avatar
 
Join Date: May 05
Location: Sydney, Australia
Posts: 54,913
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 offline   Reply With Quote
Old Jul 15th, 2005, 11: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 Search this Thread
Search this Thread:

Advanced Search
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 10:41 AM.




To view more projects, click here

Acceptable Use Policy


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.