I need some help related to CSzv export and formatting
I have a array which is having 10 txt file(Having Multiple line) content added using +=. I am looking for help to export it to csv so each array diamention value goes to single cell. That means each files content should go to single cell.
Or using get-content after reading a file how i can get all data in a single cell in CSV.So if 10 files are there 10 column cell will be having those file content. Like that in each row i will be having data for multiple server. I have tried lot but it not working.
Server name, File1, File2,…file10
server 1,file 1 content, file 2 content, go on
Server 2,file 1 content, file 2 content, go on