The ReadVarsESO program distributed with EnergyPlus does this:
http://bigladdersoftware.com/epx/docs/8-0/input-output-reference/page-090.html
Dan