I thought it would be fun to take up programming in C++. I've taken classes for it before but just forgot. Anyways, I have a quick question. Say I write a program to simply open a file (say, a text file filled with random numbers) and then read the first 5 digits. How do I take those 5 numbers and "convert" them to integers? I realize you can simply subtract from them based on the ASCII code but what if you don't know the numbers? Basically, how do I read some numbers from a text file (using getline or get) and "convert" them to integers?