bmx-ng / text.mod

Text Utilities
0 stars 3 forks source link

[FR] Headerless CSV #11

Closed thareh closed 1 year ago

thareh commented 1 year ago

Hey,

I can't really make out if ZSV supports this or not, but it would be swell with the ability to use the CSV parser without a header so the columns are simply called 0, 1, 2 etc instead.

Thanks!

woollybah commented 1 year ago

I believe it must have a header - which is why it has the option to add your own if you are dealing with files without headers. Now, whether you want to be able to access the columns by index instead, is possibly a different problem that could be resolved by the module?

thareh commented 1 year ago

I found a solution by adding my own header and then accessing the columns by their index. But it would be nice with a built-in option for this, but I guess that's an issue for ZSV? :)