Results 1 to 2 of 2

Thread: set pointer

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2001
    Location
    england
    Posts
    87

    Wink set pointer

    can anyone please tell me how to set a pointer to a location after a specific word like "end" of a file header ? i have data after the header which i want to retrieve.
    thanks


    vb rules

  2. #2
    jim mcnamara
    Guest
    Code:
    open "myfile" for input as #1
    a$ = input(lof(1), 1)
    p = instr(a$,"end")
    Seek #1, p + len("end")
    The file pointer is now aimed after the first occurrence of the word "end"

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