Processing Comma separated files stock info
Posted: Mon Jun 01, 2009 8:01 pm
HI, I have just picked up RR and want as an intial exercise to be able to Open a CSV file, read each record until the end; process each record ; write out new records based on input info to an output file and then close both.
The file records are basic stock info with Open, High, Low, Close prices, ticker symbol and date and time. I need to be able to compare dates and recognise earlier or later dates and times. Need to be able to manipulate the numbers in the Open High Low etc. Of course being a CSV file all the data is text, but I need the numbers and dates to do the processing.
the logic of what I want to do is very easy to specify but figuring out in RR how to do this is not.
can anyone give any pointers to specific RR facilities and syntax to do this. RR's documentation doesn't seem very helpful on this as yet (although I may eventually discover different as I dig around).
Separate but slightly related question: Does RR have any concept of User Defined Types, or record structures or similar? I would like to treat each line of the incoming file as a record (or struct in c or equivalent) but cannot see anything in RR that conforms to this.
TIA
Neil
The file records are basic stock info with Open, High, Low, Close prices, ticker symbol and date and time. I need to be able to compare dates and recognise earlier or later dates and times. Need to be able to manipulate the numbers in the Open High Low etc. Of course being a CSV file all the data is text, but I need the numbers and dates to do the processing.
the logic of what I want to do is very easy to specify but figuring out in RR how to do this is not.
can anyone give any pointers to specific RR facilities and syntax to do this. RR's documentation doesn't seem very helpful on this as yet (although I may eventually discover different as I dig around).
Separate but slightly related question: Does RR have any concept of User Defined Types, or record structures or similar? I would like to treat each line of the incoming file as a record (or struct in c or equivalent) but cannot see anything in RR that conforms to this.
TIA
Neil