i can use seekg and seekp functions to jump around differnt locations in the file with offset.
But now the txt file is written like:
i wanna serch a lines with its second numer 44923 and get its first number.
the way i used:
it turns out work anyway. however,i dont like it becuase there would be too many assignments in the loop if there are more sections in every line. i just wanna skip the other sections in each line. apparently i can not use "seekg" function because the lenths of names are different. so how can i do that in a smart way?