I'm grabbing data from an html file and I need only the 34th character or above to 4 spaces only on certain lines that have the html that have *racelinesb" but my if statement statement is printing out a character after it finds racelineb ,that is not the right character.it should only print "r" but it prints other characters and position is printing out a long number instead of real position numbers. Hees my code and output. Im writing this totally on a compiler on an android phone so cant use stuff thst would be available on a regular computet. It all has to be avaible in mobile c++ on google play. Thats my compiler for this project.
using namespace std;
int main ()
{
ifstream infile;
infile.open("page.out");
string line;
string sub;
string number;
int count =1;
bool found = 1;