Click here to Skip to main content
15,894,343 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Get file path Pin
rmedo13-May-09 2:44
rmedo13-May-09 2:44 
GeneralRe: Get file path Pin
Henry Minute13-May-09 2:54
Henry Minute13-May-09 2:54 
GeneralRe: Get file path Pin
rmedo13-May-09 20:13
rmedo13-May-09 20:13 
GeneralRe: Get file path Pin
Henry Minute13-May-09 23:13
Henry Minute13-May-09 23:13 
GeneralRe: Get file path Pin
rmedo14-May-09 0:13
rmedo14-May-09 0:13 
GeneralRe: Get file path Pin
Henry Minute14-May-09 0:20
Henry Minute14-May-09 0:20 
GeneralRe: Get file path Pin
rmedo14-May-09 0:23
rmedo14-May-09 0:23 
QuestionRE:Want to read a txt file from the second line only. Pin
Lee Mwangi13-May-09 2:14
Lee Mwangi13-May-09 2:14 
Hi guys,

I want to read a comma delimited text file from the second line only.I can currently read all the lines, but i want to omit the first line and skip to the next. This is the code that reads all the lines.Can anyone assist.


Dim myReader As New IO.StreamReader(browselocation2.FileName)
Dim filestream As StreamReader
filestream = myReader
Dim readcontents As String
While myReader.Peek() <> -1
readcontents = filestream.ReadLine
Dim textdelimiter As String = ","

Dim splitout = Split(readcontents, textdelimiter)
Dim sql As String = ""
Debug.Print(splitout(0))


End while

Thanks in advance
AnswerRe: RE:Want to read a txt file from the second line only. Pin
riced13-May-09 2:31
riced13-May-09 2:31 
AnswerRe: RE:Want to read a txt file from the second line only. Pin
Anoop Brijmohun13-May-09 2:31
Anoop Brijmohun13-May-09 2:31 
AnswerRe: RE:Want to read a txt file from the second line only. Pin
Dave Kreskowiak13-May-09 4:01
mveDave Kreskowiak13-May-09 4:01 
GeneralRe: RE:Want to read a txt file from the second line only. Pin
Jon_Boy13-May-09 9:06
Jon_Boy13-May-09 9:06 
AnswerRe: RE:Want to read a txt file from the second line only. Pin
Lee Mwangi13-May-09 23:43
Lee Mwangi13-May-09 23:43 
Questioncolorize partial cell in rowset of listview Pin
sal2113-May-09 1:47
sal2113-May-09 1:47 
AnswerRe: colorize partial cell in rowset of listview Pin
Henry Minute13-May-09 2:57
Henry Minute13-May-09 2:57 
GeneralRe: colorize partial cell in rowset of listview Pin
sal2113-May-09 3:06
sal2113-May-09 3:06 
GeneralRe: colorize partial cell in rowset of listview PinPopular
Henry Minute13-May-09 3:11
Henry Minute13-May-09 3:11 
GeneralRe: colorize partial cell in rowset of listview Pin
Luc Pattyn13-May-09 3:36
sitebuilderLuc Pattyn13-May-09 3:36 
GeneralRe: colorize partial cell in rowset of listview Pin
Dave Kreskowiak13-May-09 4:00
mveDave Kreskowiak13-May-09 4:00 
GeneralRe: colorize partial cell in rowset of listview Pin
Henry Minute13-May-09 5:21
Henry Minute13-May-09 5:21 
AnswerRe: colorize partial cell in rowset of listview Pin
nlarson1113-May-09 10:10
nlarson1113-May-09 10:10 
QuestionApplications running in a system.. Pin
Ageesh13-May-09 1:03
Ageesh13-May-09 1:03 
AnswerRe: Applications running in a system.. Pin
Henry Minute13-May-09 2:59
Henry Minute13-May-09 2:59 
GeneralRe: Applications running in a system.. Pin
DaveyM6913-May-09 4:12
professionalDaveyM6913-May-09 4:12 
AnswerRe: Applications running in a system.. Pin
Dave Kreskowiak13-May-09 3:59
mveDave Kreskowiak13-May-09 3:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.