Results 1 to 10 of 10

Thread: GOTo teh certain line in txt file

Threaded View

  1. #5
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: GOTo teh certain line in txt file

    1. load the file into a string like this,
    Code:
    SomeString = Input(LOF(1), #1)
    2. split the string using Split() function, delimiter is vbCrLf, it wil become an array
    3. once u get the array, loop thru array Lbound to Ubound to find VAI using InStr() function, once u get the line number of VAI, u can get the 27th(from VAI) string in array.
    Last edited by seenu_1st; Jul 23rd, 2011 at 10:21 AM.
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


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