G
gn
I am trying to parse a txt file which looks something like example
below:
(e-mail address removed)
(e-mail address removed)
(e-mail address removed)
This is the code I am using:
filetoread = file1.Value
filestream = File.OpenText(filetoread)
readcontents = filestream.ReadToEnd()
textdelimiter = " "
Dim splitout = Split(readcontents, textdelimiter)
Dim i As Integer
For i = 0 To UBound(splitout)
lblsplittext.Text &= "<b>Split </b>" & i + 1 & ") " & splitout(i)
& "<br>"
Next
This works fine if the file is in the format:
(e-mail address removed) (e-mail address removed) (e-mail address removed)
But what delimiter should I use to indicate a new line as a delimiter?
Thank you in advance...
below:
(e-mail address removed)
(e-mail address removed)
(e-mail address removed)
This is the code I am using:
filetoread = file1.Value
filestream = File.OpenText(filetoread)
readcontents = filestream.ReadToEnd()
textdelimiter = " "
Dim splitout = Split(readcontents, textdelimiter)
Dim i As Integer
For i = 0 To UBound(splitout)
lblsplittext.Text &= "<b>Split </b>" & i + 1 & ") " & splitout(i)
& "<br>"
Next
This works fine if the file is in the format:
(e-mail address removed) (e-mail address removed) (e-mail address removed)
But what delimiter should I use to indicate a new line as a delimiter?
Thank you in advance...