rgamble / libcsv

Fast and flexible CSV library written in pure ANSI C that can read and write CSV data.
GNU Lesser General Public License v2.1
181 stars 40 forks source link

Another example #19

Open SoothingMist opened 3 years ago

SoothingMist commented 3 years ago

Wanted to offer another example to those already available. This example is written in C++ and shows how to decode a record downloaded from bulk US Weather Service historical data (https://www.ncei.noaa.gov/access/search/data-search/global-summary-of-the-day). This example extracts and stores each element in a record so that it can be used in a larger application.

Attached is a VisualStudioExpress project. VSE is a free IDE available from Microsoft (https://visualstudio.microsoft.com/vs/community). However, the code is written in standard C++ so it should also build under Linux. It is an evolution of the example given in libcsv's documentation. The WeatherData directory contains a sample csv file.

Very glad to evolve this example based on community advice for the benefit of all. It is also the basis of new code being written for my own GitHub project (https://github.com/SoothingMist/Embeddable-Software-for-Irrigation-Control). VisualStudioTest.zip