I was wondering if anybody does have the code at hand to read in a .csv file with historic price data and save it as a .bar file?

The records in the csv-file are stored in the format: time, open, high, low, close
(i.e. "31/12/12 00:00, 1.32205, 1.32341, 1.32157, 1.32278")

In the "tips & tricks section" of the manual a small program is given to do the reverse task (i.e. export historic price data from a .bar file to a .csv file).

Thanks a lot!