Please excuse my simple question, this is my first aspect script. I am attempting to import data from a csv file into a database. I borrowed the script below and the "LineInfo" works if there is a single piece of data per line.
How do I get the second or third piece of comma delimeted data per line?
fgets 0 LineInfo ;get line from file
while not nullstr LineInfo
transmit LineInfo
transmit "^M"
pause 1
fgets 0 LineInf ;get line from file
endwhile
fclose 0
endif else
errormsg "File Doesn't Exist."
endif
endif
endproc
How do I get the second or third piece of comma delimeted data per line?
fgets 0 LineInfo ;get line from file
while not nullstr LineInfo
transmit LineInfo
transmit "^M"
pause 1
fgets 0 LineInf ;get line from file
endwhile
fclose 0
endif else
errormsg "File Doesn't Exist."
endif
endif
endproc