The Collections Script Challenge
A few weeks ago, I published an article on using generic collections in place of arrays. Arrays still have a place in your PowerShell scripting toolbox. But in certain scenarios, a generic collection is a better choice. Hopefully, I made that clear in the article. At the end of the article, I gave you a homework assignment. Take a PowerShell script file, or any text file for that matter, and save it in reverse order with each line of text also reversed. I thought it would allow you to try scripting with the generic collection object. How did you do? There’s never one way to do something in PowerShell but let’s compare solutions.
Source Material
I will use this script file, which is the revised file from the earlier article.
Want to read the full issue?