Forum Discussion
karkadil
13 years agoValued Contributor
Hi Deepa,
I tried working with a file similar to yours and it worked fine. Can you download the file (karkadil.org/1.csv) and try this script. What will it post to the log?
I have also attached the screenshot of the results I got from this function for you to compare.
function testCSV()
{
var csv = DDT.CSVDriver("c:\\1.csv");
while(!csv.EOF())
{
for(var i = 0; i < csv.ColumnCount; i++)
{
Log.Message(csv.Value(i));
}
csv.Next();
}
DDT.CloseDriver(csv.Name);
}
I tried working with a file similar to yours and it worked fine. Can you download the file (karkadil.org/1.csv) and try this script. What will it post to the log?
I have also attached the screenshot of the results I got from this function for you to compare.
function testCSV()
{
var csv = DDT.CSVDriver("c:\\1.csv");
while(!csv.EOF())
{
for(var i = 0; i < csv.ColumnCount; i++)
{
Log.Message(csv.Value(i));
}
csv.Next();
}
DDT.CloseDriver(csv.Name);
}