Results 1 to 6 of 6

Thread: readme.txt

  1. #1

    Thread Starter
    Hyperactive Member Janaka's Avatar
    Join Date
    Nov 2001
    Posts
    277

    readme.txt

    I have a readme.txt file
    I need to show it from vb
    How do we do this.

  2. #2
    Addicted Member
    Join Date
    Feb 2001
    Posts
    217
    what do you mean by show it?

  3. #3

    Thread Starter
    Hyperactive Member Janaka's Avatar
    Join Date
    Nov 2001
    Posts
    277
    i want to display it when there is a error in the program.

    It has instructions to solve the problem

  4. #4
    Hyperactive Member Comreak's Avatar
    Join Date
    Feb 2001
    Location
    Dis
    Posts
    319
    Try this:
    Code:
    Open "readme.txt" For Input As #1
    
    Do Until EOF(1)
    Input #1, strText
    Loop
    
    Close #1
    
    Text1.Text = strText

  5. #5

    Thread Starter
    Hyperactive Member Janaka's Avatar
    Join Date
    Nov 2001
    Posts
    277
    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.

  6. #6
    Hyperactive Member Comreak's Avatar
    Join Date
    Feb 2001
    Location
    Dis
    Posts
    319
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width