Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

CSV Methods

CSV methods are one-liners mainly for iterating through a CSV file. To view the javadocs go here

These are the different ways of using the CSV Methods:

Info

CSV Methods is not exposed as Invoke Step in Coder Studio but can still be used in Gloovy expression

Using Gloovy Step csv method gloovy

Using Gloovy Step coder csv method gloovy

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
//Create a new File Object
File myCSVFile = new File( "/location/of/the/file/myfile.csv" )

//Used CSV method for iterating through each records of a csv file.
myCSVFile.eachRecord () {
    for ( def itr = 0; itr<it.size(); itr++ )
        //prints the value of each record per line
        print it[itr] + " "
    //prints a new line
    println ""
}