Results 1 to 3 of 3

Thread: [SORTED]Searching specific line in text file?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    Resolved [SORTED]Searching specific line in text file?

    I have a text file with about 84 lines of text or so. What i'm trying to do it when someone types 32 in a box then a string is changed to what is on line 32 in the text file.

    For example if line 64 is hello, when the user types in line 64 in the textbox then the string MyString will = hello.

    I want this to be as easy as possible please. Im currently using

    VB Code:
    1. Open App.Path & "\worlds.txt" For Input As #1
    2. Line Input #1, WLine
    3.   MsgBox WLine
    4. Close #1

    But can't seem to edit it to search a specific line.

    Thanlks in advance!!
    Last edited by BefunMunkToloGen; May 2nd, 2005 at 12:20 PM.

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