Create csv on the fly