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?
Supposedly it's fixed on Series consoles: https://support.forza.net/hc/e...e-Issues-in-Forza-Horizon-6
This game is so much better than FH5, and it's all because of the map. It's diverse, big, and so much to see and do. I've bought every single Forza Motorsport and Horizon game, and by far my least played is FH5 at 100 hours, followed by the latest Motorsport. They've finally made a good one with FH6
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