aah..forgot to replace the path param passed in:
Initialize the StreamReader as follows:
sr = New System.IO.StreamReader(path) instead of the hard-coded dummy path
used.

On Tue, Dec 9, 2008 at 8:51 PM, Kaarthik Padmanabhan
<[EMAIL PROTECTED]>wrote:

> Hi,
> See if this helps:
>
>     Private Function GetDelimitedString(ByVal path As String) As List(Of
> String)
>         Dim sr As System.IO.StreamReader
>         Dim contentStr As String = String.Empty
>         Dim delimitedStringList As New List(Of String)
>
>         sr = New System.IO.StreamReader("C:\DelimitedTextFile.txt")
>         sr.ReadLine()
>         contentStr = sr.ReadToEnd()
>
>         If Not String.IsNullOrEmpty(contentStr) Then
>             For Each delimitedStr As String In contentStr.Split("@")
>                 delimitedStringList.Add(delimitedStr)
>             Next
>         End If
>
>         Return delimitedStringList
>     End Function
>
> Regards,
> Kaarthik
>
>
> On Tue, Dec 9, 2008 at 3:27 PM, Clyde <[EMAIL PROTECTED]> wrote:
>
>>
>> Hello,
>>  I have a txt file whose lines are separated by a delimiter "@".
>> How can I read the file line by line using "streamreader"?
>> Plz reply asap.
>> Thanx,
>> Clyde
>>
>
>
>
> --
> Kaarthik,
> http://coding-passion.blogspot.com
>



-- 
Kaarthik,
http://coding-passion.blogspot.com

Reply via email to