Splitting the single csv file

Hi,

I have a requiement where in i will get a single file but there will be mutiple headers.

Suppose say for eg:

Header1
Data...
Data...
Header2
Data..
Data..
Header3
Data..
Data..

I want to split each with the corresponding data into a single file.
Please let me know how this can be done with shell scripts.

Thnx in advance.

How consistent is the header and the data? Please give an example. Or, is it always one single line of header and two lines of data throughout the whole file? Please explain.