I am working in C on a text file that contains METAR data.
I would like to count how many entries file contains and still I don't know where to start and how to go through.
Counting lines is out of option, as METAR files may contain some additional 'commented' header data, so my first thought was to count all "METAR"s as in every entry there is just one. And still there is a problem of this commented header - who knows if someone didn't put some "METAR" in there?
"So, where's the democracy here, because that looks like dictatorship to me."
Then you need to find a dictionary.
You see Starmer has announced this however it is not a law until it's passed by parliament. So this whole dictatorship thing falls apart when you consider the correct procedure is being followed.
If I have to present some documentation to access a service to reduce the potential impact on children I have no issue with that. It was like the whole **** lock. If you have a real issue with it being made harder for kids to access **** because it's a little inconvenient I have concerns about you.
The illusion that the government need you to pass some digital ID law to monitor you shows pure ignorance to the sheer volume of data already out there.
Question
Action Hank
I am working in C on a text file that contains METAR data.
I would like to count how many entries file contains and still I don't know where to start and how to go through.
Counting lines is out of option, as METAR files may contain some additional 'commented' header data, so my first thought was to count all "METAR"s as in every entry there is just one. And still there is a problem of this commented header - who knows if someone didn't put some "METAR" in there?
Still, I do not know how, C is a new area for me.
There is a link to METAR on wikipedia: METAR
and some of my sample file:
And as you can see there might be some problems
Maybe counting "=" is a bright idea?
Do you have any ideas?
Any help is appreciated.
Link to comment
https://www.neowin.net/forum/topic/860548-c-file-operations-word-search-etc/Share on other sites
10 answers to this question
Recommended Posts