This is my input file format. What I need to be able to do is to process a specific line, say line 2. I need to read it in and store the second line only to an int variable. How could I go about doing this?
Sorry, I don't even want to consider that option. I know there are much simpler ways to just convert the type. The character I need to store will always be in line 2; I can create a counter to figure out where to stop easily. Need something more along the lines of converting from char to int with one simple line of code. Not willing to write a couple of loops for the solution.