in reply to Custom printing of an HoA

Where does the 4 columns bit come from?

If each value is "\n" terminated, I would expect to see a single, very long column output from you code

Unless each individual element of each array actually contains 4 space or comma delimited fields terminated by a newline?

A little (abbreviated) sample datam plus a C&P from the resultant file and an example of how you would like that same output formatted would go a long way to clarifying your question.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.