in reply to Re: Text Conversion
in thread Text Conversion

Hi,
To all those, who are attempting to answer, and asking me to change the data structure:
My source object has methods which can be called from outside. Thus, to the destination object I access the method with source->section1 rather than source->{_section1}. Also section1,section2 are just the place holder here for the actual names such as account_number or key_code.

Here is the sample data suggested by jdporter.

foo1 bar1 etc1
foo21 bar21 etc21 
foo22 \bar22 etc22
foo3 bar3 etc3
foo31 bar31 etc31
foo32 \bar32 etc32
foo33 \bar33 etc33
Output required:
foo1 bar1 etc1
foo21 bar21 etc21 bar22 etc22
foo3 bar3 etc3
foo31 bar31 etc31 bar32 etc32 bar33 etc33

Thanks,
Artist