Thanks for reaching out on Microsoft Q&A!
I don't know the exact purpose of your question, but what you could do is a split on new lines, and loop over it. Next, append the string with ',Active' on the first line (you can do this by using and index variable to check whether your on the first line) and ',1' on the other lines.
Please click ‘Accept answer’ if you think my answer is helpful. Feel free to drop additional queries in the comments below!
Kind regards,
Sonny