Dec 23, 2004 #1 B bokaraton Member Joined Nov 25, 2003 Messages 23 Is there an equivalent to text.AtEndOfStream? I have vb6.0 code that loops/reads thru a text file til end of stream which I am trying to convert over to vb.net. Code: Do While text.AtEndOfStream <> true code Loop
Is there an equivalent to text.AtEndOfStream? I have vb6.0 code that loops/reads thru a text file til end of stream which I am trying to convert over to vb.net. Code: Do While text.AtEndOfStream <> true code Loop
Dec 24, 2004 #2 Iceplug Well-known member Joined Aug 20, 2001 Messages 706 Location South Carolina, USA Yes. Assuming that text is a StreamReader, you can have Do Until text.Peek = -1 You also have the option of reading the whole file with s = text.ReadToEnd
Yes. Assuming that text is a StreamReader, you can have Do Until text.Peek = -1 You also have the option of reading the whole file with s = text.ReadToEnd