I know this is a stupid question, but how can I read numbers from a file and store them in an int, double, or float variable? I am quite familar with how characters can be read and stored in a string, but how can this be done with numbers?

Thanks! ^_^