View Single Post
Old 09-16-2007   #1 (permalink)
Faisal


 
 

Count the number of Columns/rows in a CSV file....

Hi,

I am trying to count the number of columns and rows in a CSV file and place
the values into integer variables so they can be manipulated later. I
thought maybe using the measure-object command to count the number of lines
would be helpful but cant cast this explicitly as an integer (so cant edit
the count values returned). I am not sure how to return the value of the
number of columns, is there a way to count the number of 'noteproperty'
member types using import-csv 'file' | gm ?

Any help into this will be greatly appreciated.
My System SpecsSystem Spec