how can i save capture in .txt file using Utility but sort one line to multiple lines using the sperater , ?
-
So basically i have a Capture of data that comes from JSON which they all comes together as one line i was wonder is there a way i can make them comes as multiple lines go to .txt file by Utility
so lets say for example the capture comes like this
Example (Single) = [simple1, simple2, simple3, simple4, simple5, data1, data2, data3, data4, data5]
how i can make them in the txt file as the following
simple1
simple2
simple3
simple4
simple5
data1
data2
data3
data4
data5how it can be done to save each line alone before the sperate " , "especially if it's large capture?
-
@SpearRipper
https://forum.openbullet.dev/topic/7/how-to-loop-on-a-list-variableUTILITY List "MyCapture" Length -> VAR "Length" SET VAR "INDEX" "0" WHILE "<INDEX>" LessThan "<Length>" UTILITY File "test2.txt" AppendLines "<MyCapture[<INDEX>]>" -> VAR "MyFile" FUNCTION Compute "<INDEX>+1" -> VAR "INDEX" ENDWHILE