Junkone
6/4/2008 9:45:00 PM
not sure why fastercsv cannot parse this. cannot find anything wrong
with my code either. why does it show invalid arguement. for eg
puts ie.text
"ClientAccountID","CurrencyPrimary","AssetClass","Symbol","OptionFutureCode","Quantity","MarkPrice","CostBasisPrice"
"6814789","USD","STK","CSUN","","125","11.9800","12.1750"
"6814789","USD","STK","SIMO","","150","20.0500","19.186667"
arr_of_arrs = FasterCSV.read(ie.text,{:col_sep => ",",:headers=>true})
Invalid argument -
"ClientAccountID","CurrencyPrimary","AssetClass","Symbol","OptionFutureCode","Quantity","MarkPrice","CostBasisPrice"
"6814789","USD","STK","CSUN","","125","11.9800","12.1750"
"6814789","USD","STK","SIMO","","150","20.0500","19.186667"