|
-
Dec 17th, 2002, 11:10 PM
#1
Thread Starter
Hyperactive Member
readme.txt
I have a readme.txt file
I need to show it from vb
How do we do this.
-
Dec 17th, 2002, 11:19 PM
#2
Addicted Member
what do you mean by show it?
-
Dec 17th, 2002, 11:25 PM
#3
Thread Starter
Hyperactive Member
i want to display it when there is a error in the program.
It has instructions to solve the problem
-
Dec 17th, 2002, 11:29 PM
#4
Hyperactive Member
Try this:
Code:
Open "readme.txt" For Input As #1
Do Until EOF(1)
Input #1, strText
Loop
Close #1
Text1.Text = strText
-
Dec 18th, 2002, 02:11 AM
#5
Thread Starter
Hyperactive Member
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.
-
Dec 18th, 2002, 02:45 AM
#6
Hyperactive Member
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:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|