To simplify the above, basically I would like to extract variables delimited with a comma in a line that I pull from a file.
So if a line is: 2006-12-31,00:01,AUD,Bank Holiday <<AllDay>>,L,11,2,33
I would like to have
variable 1 = 2006-12-31
variable 2 = 00:01
variable 3 = AUD
Variable 4 = Bank Holiday <<AllDay>>
... and so on for everything within that line. And then I would like to read the next line and assign variables from that new line and so on..