I have a readme.txt file
I need to show it from vb
How do we do this.
Printable View
I have a readme.txt file
I need to show it from vb
How do we do this.
what do you mean by show it?
i want to display it when there is a error in the program.
It has instructions to solve the problem:D
Try this:
Code:Open "readme.txt" For Input As #1
Do Until EOF(1)
Input #1, strText
Loop
Close #1
Text1.Text = strText
Readme.txt is a normal text file you find with most of the software.
I don’t want to write any to it.
The file already has instructions to users how to solve problems that might occur in the installation. (Like how to configure your VGA card, where to download the drivers etc.)
I want to pop this txt file through VB. I think there could be a API for this.
What I posted above should work fine. All it does is store the contents of the text file in a string. You can't even modify it when you open it like this. You don't have to display the file in a textbox control. You could do this as well:
Code:MsgBox strText