English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

read until you hit the newline (CR and / or LF)

so it would be something like:

while not CR or not LF
read character

2006-07-10 01:55:37 · answer #1 · answered by justme 7 · 0 0

Dim YourStreamReader as StreamReader =

File.OpenText("C:\TextFile.txt")

Then call the ReadLine method from WhateverYouCallYourStreamReader, like so:

WhateverYouEtc.ReadLine( ) This returns a String, so your actual statements would look something like:

Dim SomeStringVariable as String
Dim SR as StreamReader = File.OpenText("C:\TextFile.txt")

SomeStringVariable = SR.ReadLine( )

2006-07-10 08:54:15 · answer #2 · answered by Beelzebozo 1 · 0 0

Read until you will not encounter the end of file.

2006-07-10 08:47:57 · answer #3 · answered by alakit013 5 · 0 0

fedest.com, questions and answers