I am making a code that is supposed to find a zip code and if it is only 4 digits it means it is missing a zero in the beginning i was trying to use this for the coding but it is not working.
<Find all zip codes with 4 numbers
index=line.rfind("\t");
if (line.substr(line+5=="\t")
{
numberofleadingzeros++;
}>
i am also having trouble with the outputs with two other parts it doesnt give me an error but it doesnt find any of the lines in the text file its this one