::hwat::utils::TokenizeLine

Tokenizes given line data based on the given separator.

Syntax

::hwat::utils::TokenizeLine str_lineData str_separatorChar

Arguments

str_lineData
The input data line.
[str_separatorChar]
Any character, excluding special characters.
Default = comma (",")
Optional.

Returns

Success
A Tcl list of given data after tokenizing the given line data based on the separator.
Failure
{}

Example

::hwat::utils::TokenizeLine "abc, 123, 345, 654, 8.92"  ","