User input strings for OSCsend

Thanks! I see that by setting wrap(0) I can hit Enter on texteditor to pass 1 string.
But in multiline (wrap(1) ), cmd+Enter passes ALL strings. So, I suppose it is not possible to pass selected strings?

With listbox I could load items from file and maybe(?) change items like you show here: Combobox vs Listbox Dynamicism
The “problem” with that is a fixed length array of item strings.
Is there a simple way to change, append and delete items/lines in a text file? I think it is easy with numbers but it seems complicated with strings.