This is my input file:
02/15/1995 S 10000 3.71
02/15/1995 B 10000 3.71
02/15/2009 B 1000 16.15
01/27/2011 S 5000 28.87
09/02/2011 B 100 25.80
09/06/2011 B 500 25.51
09/08/2011 S 700 26.52
09/09/2011 B 2000 25.74
09/15/2011 S 1000 27.00
09/22/2011 B 300 25.00
09/22/2011 s 30000 25.00
09/26/2011 B 100 25.50
How can I read this into a stack and then be able to process it? Should I use a typedef struct, a linked list, or what? I want to be able to access each field separately... How would I go about this?