readDelim function
readDelim(String file, String sep, Boolean header, String comment)
A function that loads values from a data delimited file and returns a map.
Parameters
- String file - the file name including path.
- String sep - the separator (delimiter) to separate values in each row.
- Boolean header - (optional) If ‘header’ is true, as default, then use the 1st row as the map keys, otherwise it will create keys and load the values from the 1st row.
- String comment - (optional) The comment character to ignore everything after it in one line. The default is #.