in reply to Please help me with this ASCII file parsing assignment

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.

  • Comment on Re: Please help me with this ASCII file parsing assignment