Parsing fixed-width flat files with Clojure by Fredrik Dyrkell.
From the post:
…
This particular file is an example file for the Swedish direct debit transaction reports. Each row is fixed 80 characters long. Previously when I’ve worked with application integration between banks and ERP systems, I’ve often encountered these types of files. It is quite handy to be able to parse them, either completely or just extract relevant information, and send on further into another system.
…
Learn some Clojure and add a tool to parse fixed-width files. Nothing wrong with that!
The example here is a bank file but fixed width reports abound in government repositories.
Enjoy!
I first saw this in a tweet by PlanetClojure.