The problem is placement.
Some field starts in column 1 and is 1 character in width. Next field starts in column 2 and is 24 characters in width by specification, but could be shorter.
It seems to work ok, but I've found some difficulty in placing 33 variables and getting them to stay in the precise columns.
I have tried using the various parsers, but many of them were mostly concerned with parsing the input and did not do much for writing the output.
Maybe I just need a better example, I don't know. But the sprintf method seems to require I calculate the differences between columns and padd all accordingly. If thats the only option, then I guess I will have to do that. But I suspect I misunderstand how that works, or there is a more elegant solution.
In reply to Re^2: Writing Fixed Flat Files
by coffeeslob
in thread Writing Fixed Flat Files
by coffeeslob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |