by Karthick @ The Hindu (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Wed 5th July 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Displaying the text file in Text box(simple code)
API Declarations
Paste one text box with multiline property and expand its size.
Dim FileLength
Open "D:\karthik\testfiles\bctest1.txt" For Input As #1
FileLength = LOF(1)
var1 = Input(FileLength, #1)
Text1.Text = var1
Close #1
End Sub