One way is to make a list of the start column for each field, in reverse order, then iterate over your data using substr to insert the commas.
In reply to Re: Please help me with this ASCII file parsing assignment
by hangon
in thread Please help me with this ASCII file parsing assignment
by zli034
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |