Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Read-entire-file/Visual-Basic-.NET/read-entire-file.vb
Normal file
16
Task/Read-entire-file/Visual-Basic-.NET/read-entire-file.vb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
Imports System.IO
|
||||
|
||||
Public Class Form1
|
||||
|
||||
' Read all of the lines of a file.
|
||||
' Function assumes that the file exists.
|
||||
Private Sub ReadLines(ByVal FileName As String)
|
||||
|
||||
Dim oReader As New StreamReader(FileName)
|
||||
Dim sLine As String = oReader.ReadToEnd()
|
||||
|
||||
oReader.Close()
|
||||
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
Loading…
Add table
Add a link
Reference in a new issue