in reply to File content sorting based on type

The last time with this problem, your file was something JSON-like and not a CSV file.

I think you will be better off in the long run to learn how to read in a file in its original format instead of converting it using Excel or whatever to a CSV format.

If you have received the new input data from a different source or in a different format, I recommend removing the old parsing code completely as you don't seem to know which parts of the old code cannot apply to the new data.

Replies are listed 'Best First'.
Re^2: File content sorting based on type
by perlmad (Sexton) on May 31, 2016 at 11:06 UTC

    I was posted .json file but the original code has .csv file , i forget to mention sorry for that and input file should have securityType string, I was posted sorted files only