We help IT Professionals succeed at work.

MS VS-2005 Read .csv file

170 Views
Last Modified: 2013-11-26
I am reading a .csv file with the help of io namespace

the following code is showing me data properly on browser, the problem is that I need to start reading data from the 2nd line instead of 1st line and then show the same on browser:

        Dim sW As New StreamReader(path)
        Dim a As String
        a = sW.ReadLine
        Dim SqlInsert As String

        While Not a = Nothing

            Dim value() = Split(a, ",")

            Response.Write(a)
            Response.Write("<br/>")
            Response.Write(value(0))
            Response.Write("<br/>")
            Response.Write(value(1))
            Response.Write("<br/>")
            Response.Write(value(2))
            Response.Write("<br/>")
            Response.Write(value(3))
            Response.Write("<br/>")
            a = sW.ReadLine

        End While



Comment
Watch Question

IT Pro/Developer
CERTIFIED EXPERT
Top Expert 2008
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Forced accept.

Computer101
EE Admin
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.