Quote from
Gaev on July 2, 2019, 2:09 pm
@ronnie
1) Use StrParse command to convert the loaded text (string) into an array of lines ...
StrParse "source string" "delimiter" "array variable"
... where ...
- source string is the variable associated with the Container
- delimiter will depend on whether the text file was on Windows or not ... line delimiters on Windows based files are \r\n ([#13][#10] in the days of NeoBook) ... on other systems, delimiters are just \n
2) Once you have your array variable e.g. [csvline], you can access individual lines (starting with zero) ...
[csvline(0)]
[csvline(1)]
etc.
Note that ArrayLen will give you the number of lines; so, the last line will be the value returned by ArrayLen minus 1
@ronnie
1) Use StrParse command to convert the loaded text (string) into an array of lines ...
StrParse "source string" "delimiter" "array variable"
... where ...
- source string is the variable associated with the Container
- delimiter will depend on whether the text file was on Windows or not ... line delimiters on Windows based files are \r\n ([#13][#10] in the days of NeoBook) ... on other systems, delimiters are just \n
2) Once you have your array variable e.g. [csvline], you can access individual lines (starting with zero) ...
[csvline(0)]
[csvline(1)]
etc.
Note that ArrayLen will give you the number of lines; so, the last line will be the value returned by ArrayLen minus 1
luishp has reacted to this post.