Fixed Width File Reader

Hi @natashullea , the width that I used came from what you used in your workflow, which incidentally was incremental of 5. But it should work with any width.

The mistake that I made was that the intervals/indices should be cumulative value, as each column’s position is the width in relation to the previous column.

I have fixed it by computing the cumulative value:

And in the revised example, I have added the 7 columns with the mixed width of 1, 5, 1, 15, 30, 4, 8 that you mentioned, and it worked.

Here’s the workflow: File Reader with files with different column width.knwf (134.0 KB)

1 Like