Hi,
I'm quite new to C++ and I'm trying to figure out how to do something, I hope someone can help. Basically, I have a text file which I want my program to open. This has a number of data entries in it but I'm only concerned with a couple.
A few lines start with 'EXP_SHOT_MAP' and I want to seek as far as the first occurance of this string. I then want to seek along that line to '('. There's loads of ('s so I need to go to EXP_SHOT_MAP first. I then want to store the first character after '('. Presumably using getchar().
How would i do this?
I'm quite new to C++ and I'm trying to figure out how to do something, I hope someone can help. Basically, I have a text file which I want my program to open. This has a number of data entries in it but I'm only concerned with a couple.
A few lines start with 'EXP_SHOT_MAP' and I want to seek as far as the first occurance of this string. I then want to seek along that line to '('. There's loads of ('s so I need to go to EXP_SHOT_MAP first. I then want to store the first character after '('. Presumably using getchar().
How would i do this?
Comment