Q. How can I use Get-Content to read and parse a comma-separated value (CSV) file in PowerShell?
A. Don't. Anytime you're parsing text, you're probably working too hard. The Import-CSV cmdlet already knows how to parse a CSV file, so just use that.
Do you have a Windows PowerShell question? Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.
0 comments
Hide comments