Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

readFromCSVFile(path, hasHeader [, charset])

Package

file

Alias


Pkg Usage

readCSV(path, hasHeader [, charset])

Description

Excerpt
hiddentrue

Reads the values from the CSV file, returning them to an array, of N rows * M columns values.

Reads the values from the CSV file, returning them to an array, of N rows * M columns values.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

path

String

Yes

Specifies the file name to read from.

hasHeader

Boolean

Yes

Specifies if the file has header.

charset

String

No

Specifies the charset used to read that file.

Return Type

String []

The values from the file, as a string array.

...

Unless calendar dates are in formats SIL can understand, dates should be imported as strings and further parsed afterwards in your SIL program.

Note
  1. You can use absolute paths and relative paths to "sil.home".

  2. If the header exist, it must not have duplicated columns, otherwise you need to skip it manually.

  3. If the file is not found, an error will be raised.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "file_routine" and space = currentSpace ( )
labelsarray_routines