Josh King 4/18/2018

All I Want Is a Damned CSV!

Read Original

This article addresses a common PowerShell issue: when exporting a simple array of strings to a CSV file using Export-Csv, the output contains string lengths instead of the values. It explains that Export-Csv exports object properties, and strings only have a 'Length' property. The post provides solutions, such as using Set-Content for a plain text file or converting strings into custom objects with a named property before exporting to CSV.

All I Want Is a Damned CSV!

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week