Hi ,
I have a question about reading in a file. I have a file that I am reading in that has the format:
setenv HOST1 somehostname1
setenv PORT1 someportname1
setenv HOST2 somehostname2
setenv PORT2 someportname2
essentially, I need to be able to store these HOSTS names and PORT numbers, I have used a struct to do this with no problem.
However, I can't figure out how to be able to ignore the "setenv", I tried ignore(), but it did not work.
I am not sure of how to do this??Do I use getline, or get and then ignore??
I want to be able to ignore the "setenv", but then be able to read in the "HOST1 somehostname1"...etc
Thank you for any help anyone can offer. It is appreciated!