Splinting & storing lines in txt file

22 views
Skip to first unread message

R S U

unread,
Jun 16, 2024, 3:32:57 AMJun 16
to DroidScript
Thanks for my previous post ,I have Try it successively ;it store stings but straight way I want it store line under line .
More explanation :- 
It store like  X---------- x-------- x-------  X-------- & so on.
I need 
 X----------  
x-------- (new added)
 x------- (new  added)
 X--------  9New added)
 & so on.

Alan Hendry

unread,
Jun 16, 2024, 7:11:36 AMJun 16
to DroidScript
HI,
The standard in DS controls is to use the JavaScript string \n
(or <br/> if you specified html in the controls options)
The usual way to replace all occurrences of a separator is JavaScript replace using a regular expression with the /g flag
(there's now ReplaceAll in JavaScript, but I've never tried it).
W3schools is my goto site for JavaScript.
Regards, ah
Reply all
Reply to author
Forward
0 new messages