Hi I have a txt file that I want my program to read. I use fstream. The file has the number 15 as the only thing in it. I want my program to read that 15 as an integer instead of a character string. Is that possible how do I convert a char string into an int. I know about typecasting but that doesn't work because it turns it into an integer that is huge and not the number 15. I think that is because it converts the string into the number of bits it took to store that string but I am not sure. So really my question is how do I get char thing[256]="15" to convert to int thingy = 15 ?
Am I making sense? Thank you.