Construct header lines for file