Current solution for reading Fixed Width files (2024)

I’ve done the due diligence searching the forum for solutions to read fixed width files, but found mostly things from 2017, 2019, 2020… and referencing packages that don’t seem to exist anymore (FWF.jl). Julia has been moving pretty fast, that’s great. I’m hoping there’s some way to read fixed width files that works well today. I don’t see FWF.jl as a package available anymore? It’s not listed on juliahub at least. I see it’s on github last released in 2018 (pre julia 1.0?) I see there’s a FWFTables.jl package but it was last updated in 2020 and uses something called “blaise” files which I"m not familiar with.

I’m trying to read this data in the text format.

I’m sure I can assume ASCII and read line at a time and split it by slices and strip padding etc by hand, but I figured maybe this is easier with an existing package and I hoped maybe it’s available somewhere?

2 Likes

Love the Julia community! thank you!

1 Like

Hey @00krishna, did you have a solution for this?