Another Word For It Patrick Durusau on Topic Maps and Semantic Diversity

January 6, 2015

Parsing fixed-width flat files with Clojure

Filed under: Clojure,Data Mining — Patrick Durusau @ 9:07 am

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.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress