How to read line #50 in first column as variable 1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kimmelsd33
    New Member
    • Dec 2009
    • 29

    #1

    How to read line #50 in first column as variable 1

    I need to read a tab delimited text file in vb6, and store the first column, first line of data in a variable. I need to do the same with the last line, first column of data. This should store a number in the variable. For instance, read line 50, column1 and store in variable "depthstart ". With the last line, first column, stored in a variable named 'depthstop'. That's the only data I need to pull from a tab delimited text file. Does anyone have any sample code, or some pointers? I know I need to open the file and close it when I'm finished. Other than that, I'm not sure. Thanks for the help
  • vb5prgrmr
    Recognized Expert Contributor
    • Oct 2009
    • 305

    #2
    In VB's help, on the index tab, look up the following...

    FreeFile Function
    Open Statement
    Input Function
    Close Statement
    Split Function



    Good Luck

    Comment

    • kimmelsd33
      New Member
      • Dec 2009
      • 29

      #3
      Thanks for the help. I will research. Thanks again for your help

      Comment

      Working...