How do move text from under each other to beside each other?

I have a text file that displays text like this:


I would like to move the text to have it like this:

Text1, Text2, Text3, ...

How do I do this using PowerShell?

Welcome to the forum. :wave:t4:

That’s not a free code shop here. :wink: What have you tried so far? :thinking:

This forum is for scripting questions rather than script requests. We’d be happy to help you with your self written code but we do not write customized and ready to use scripts or solutions on request.

I’ve been looking around the web and can’t seem to find anything. I think my wording might be causing some issues there. If you have an article describing this or a way of phrasing this that could get me some results, it would be greatly appreciated!

You have found NOTHING AT ALL? Really? :thinking:

How about this?

“PowerShell reading file content”
“PowerShell concatenating strings”
“PowerShell writing to a file”

The solution might not be the first hit or even on top of the sites you find. Please show a little effort. :wink: