You can use dec, hex, or oct to establish or reestablish what you want, or setbase () with a specification of 8, 10 or 16. They won't work properly if improperly applied or presented with malformed input. When you say you have integer values in the file you should be clear about whether they're numbers encoded with some character set or ...