home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic .NET - Read Less - Learn More
/
Visual_Basic.NET_Read_Less_Learn_More_Richard_Bowman_Visual_2002.iso
/
Resources
/
Code
/
Ch5-ReadAFileStream
/
Module1.vb
< prev
Wrap
Text File
|
2001-07-19
|
373b
|
14 lines
Module Module1
Sub Main()
Dim myStream As New IO.FileStream("C:\Test.txt", _
IO.FileMode.Open, IO.FileAccess.Read)
Dim myReader As New IO.StreamReader(myStream)
Dim text As String = myReader.ReadToEnd()
Console.WriteLine(text)
myReader.Close()
Console.ReadLine()
End Sub
End Module