@huntenkill said in Parsing all lines from text file:
VAR_NPCLIST
VAR_NPCLIST is already list I guess. There is no split() function in javascript for array types. Split() works for string types.
@Diya.3rif BAS has internal function csv_parse, but it doesn't handle rows without commas.
So this won't work
"AA
11111
11111"
"BBB
2222
2222"
while this
"AA
11111
11111",
"BBB
2222
2222"
will work.
Anyway there is regexp support, so you can process text very easy.
This regexp should work for you \"([^\"]+)\"
And here is project which solves your problem.
0_1504114213349_MultilineCsvProcess.xml