Imports System.IO Imports System.Text Module Module1 Sub Main() Dim all As String = File.ReadAllText("D:\a.txt", Encoding.Default) Dim s As String = all.Substring(40) MsgBox(s) End Sub End Module
Dim r = FileOpen(FileNum,"D:\a.txt",OpenMode.Input)