How to go about finding user input (integers) within a text file?

To my understanding, you use the getline function in order to find a string of letters from a file, but what if you're wanting to find a certain number in a text file. Like let's say the user types in '1234'. What's the equivalent in finding an integer?

There are a lot of ways, but life can be made easier if you have a particular pattern you can exploit. Do you have an example of your input file?
Topic archived. No new replies allowed.