PowerTip: Put Array of Letters Back into a Word with PowerShell
Summary: Use Windows PowerShell to put an array of letters back together to form a word.
I split a word by converting it to a chararray, and now I want to put it back together.
How can I use Windows PowerShell to do this?
Use the –Join operator to put the characters back together. To convert it back to a string,
add the ToString method, for example:
$a = "dog".ToCharArray()
($a -join '').tostring()