@naeem For a sensible answer, I need to know more information. Which JSON file is it and what is it for?
JSON file is easy to create, just click "Write to file", for example, with the name "my_file.json". You can find the content (syntax) of JSON here: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON
Split for each line to file
-
Hello,
I have text contain few lines. Example:Line1
Line2
Line3I would like to split text each line to an variable and save to file
Line1 => file 1
Line2 => file2
Line3 => file3Just like that. I'm using GET string between
.split("\n")[1] => This is comeback with Line0 and save to file 1 succeedBut when i using Get string between Line 2 and Line 3 with
.split("\n")[0]
.split("\n")[2]The file 2 got all text except Line1
Can anyone help me with this?Regard.
-
Example i got specific text like this (NO1)
Line1Line2
Line3
Line4
Line5It's not like this (NO2)
Line1
Line2
Line3
Line4
Line5And 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?
Regard