نمایش محتوای یک فایل متنی روی کادر متنی textbox با کد وی بی دت نت vb.net
شنبه, ۲۴ مهر ۱۳۹۵، ۰۹:۲۷ ب.ظ
gameover.blog.ir
Imports System Imports System.IO Class Test Public Shared Sub Main() Try ' Open the file using a stream reader. Using sr As New StreamReader("TestFile.txt") Dim line As String ' Read the stream to a string and write the string to the console. line = sr.ReadToEnd() Text1.Text=line End Using Catch e As Exception Console.WriteLine("The file could not be read:") Console.WriteLine(e.Message) End Try End Sub End Class
۹۵/۰۷/۲۴