get() is reading double digit as individual digits

For example: 1, 5, 12, 8

val1 = f1.get();

It's reading the single digits just fine, but for some reason, the 12 gets split into 1 and 2

Anyone know why that might be?
The get() function reads one character.

If you want to read numbers you should consider using the >> operator.
Registered users can post here. Sign in or register to post.