This is very readable if you know the language, plus a modicum of file I/O.