Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Split CSV file into multiple fixed width files based on criteria

$
0
0

Hello and thank you for taking a look at my question!

I have a CSV file that I need split into 2 files based on what values are in a specific column then output each column to a defined fixed width. 

There will be a total of 5 values in the column being evaluated, 4 of which will go into 1 file, 1 specific value will go into the other file.

Both files will have the same fixed widths of the columns formatted with Right justification (I think its right-justified when I need the blank spaces on the left).

I need to specify the file names as well.

Can someone point me to a good reference on how to do this or have any chunks of code where this has already been done before?

Thank you for looking at this!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>