Bit beyond my real code, but in pseudo code would:
print out your header information
read all the lines into a list
process the list, line at a time
If the line starts "01" grab that line into a variable
bolt on a carriage return preceding the variable, outputting the two to a new variable
move onto the next item in the list
when finished, output the whole lot enmasse to wherever it needs to go
not do the trick?
Adding the carriage return *before* the line gives you a preceding line between your header and the first line, and eliminates a probably undesirable trailing line at the end
dJE