Also, is there a function for ifstream that I could use to return ints instead of using .get(x) and typecasting to int?