The easiest way of doing that is to use the "Write LabVIEW Measurement File" VI. By default, this will write a header section for each execution, but you can limit that to one or no header. You can also choose to write one timeline per execution or one timeline per execution and waveform etc.
Besides that, you can use the "From DDT" VI to split data up into waveforms or double arrays, but that would leave implementing the formatting to you.