I've got a line of txt
and I have to read in only certain pieces of it.
this is what I've got so far.
// open file
infile.ignore(6,'\n'); // ignores the first 6 spaces or finds \n
infile.getline(engine,5); // asigns the next 5 to engine
/* so far it works fine, now I'm trying to get to the other side of the space to pick-up the major and minor cycles.*/
// this one will not pick-up anything ?
any input would be great , maybe substr(pos, len) but I can't hget it to work at all.