| || |
Reading from a CSV file
Here's the scenario:
1) I am trying to create a data-driven testcase wherein I have a CSV file that contains the data I want to use as inputs to my scripts. The csv file will look something like this:
data1, data2, data3
data1a, data2a, data3a
and so forth...
2) Now, how do I read from the csv file?
Re: Reading from a CSV file
You can read a line of the file as a string then seperate the values using the GetField(sString, sDelim, iField) function. Where sString is the line read from the file, sDelim is the delimiter, and iField is the value you want to retrieve. If you want to read the second value of
it would be
[This message has been edited by Tom VonderBrink (edited 07-25-2000).]