Reading number in lines in textfile

hello lets say this is our textfile


-----------------------------------
45(here is space)string and other shit is here
454(here is space)string and other shit is here
4121(here is space)string and other shit is here
77(here is space)string and other shit is here
45545(here is space)string and other shit is here
1122(here is space)string and other shit is here
-----------------------------------


how do i get exactly that number in every line start? and compare but i jus tneed to get them to variable so ?
Use formatted input to extract the number, then .ignore() the rest of the line.
can u tell me more please?
Topic archived. No new replies allowed.