Results 1 to 3 of 3

Thread: [RESOLVED] Messy VB.NET

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    England
    Posts
    79

    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 :-/

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    England
    Posts
    79

    Re: Messy VB.NET

    Perfect!

    Going to try it out now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width