couldn't find any documentation for this. This is m delima:
I'm reading in a text file that has numbers and text. The text is on seperate lines started with a # and denote a comment line. all other lines are lines of numbers with tabs between the numbers like so
#coment to be ignored
12 56 78 3
33 67 93 76
#another comment to be ignored
582 8782 7 23
how do I skip over the lines with text using fscanf. I've seen syntax like fscanf(<handle> "%[^/]",buffer);
which will read until it hits a "/" char but I need to read until I hit a number then be able to store that number in a variable. Can anyone explain how this is done?
-- Thanks in advance Lumby



LinkBack URL
About LinkBacks


