Hi
I have made a user interface for a dos based program, the dos based program stores its results in a text file. Is there a way to import this directly into a active form window or a text box?
thanks
steve
Printable View
Hi
I have made a user interface for a dos based program, the dos based program stores its results in a text file. Is there a way to import this directly into a active form window or a text box?
thanks
steve
To load a standard text file into a TextBox you can use:
Code:Private Sub Form_Load()
Dim intFF As Integer
intFF = FreeFile
Open "C:\path\to\your\file\here.txt" For Input As #intFF
Text1.Text = Input(LOF(intFF), intFF)
Close #intFF
End Sub
Thanks
That worked a treat!!!!!!!!:) :D
Use the Thread Tools and "Mark Thread Resolved"