Added a function to parse optdigit files