Split for each line to file
I have text contain few lines. Example:
I would like to split text each line to an variable and save to file
Line1 => file 1
Line2 => file2
Line3 => file3
Just like that. I'm using GET string between
.split("\n") => This is comeback with Line0 and save to file 1 succeed
But when i using Get string between Line 2 and Line 3 with
The file 2 got all text except Line1
Can anyone help me with this?
GaG last edited by
Use "Read file to list" action and you will
get a list variable where each line will be
list element. After that you can write file
in a loop so each list element would become
a new file.
How i can use that for get text from specific line 1, line 2.
Line 1 ->Save to file1 . Read back and use
Line 2 -> Save to file 2. Read back and use
Line 3,4,5,6 Not need to save and not using
Example i got specific text like this (NO1)
It's not like this (NO2)
And i would like to split from case 1 to case 2 and save Line1 and Line2 to specific file and use back in script
Anyone can help?