CSV Fortran Module#
The CSV Fortran module is a simple module that provides subroutines to read and write CSV files. The module is written in Fortran 2008 and is designed to be easy to use. The module is available on GitHub at jacobwilliams/csv-fortran
Introduction#
In this tutorial, we will learn how to use the CSV Fortran module to read and write CSV files. We will start by downloading the module from GitHub and then we will write a simple Fortran program that uses the module to read and write a CSV file.
Table of Contents#
Using the CSV Fortran Module#
According to the module’s GitHub page, the Fortran Package Manager (FPM) can be used to build projects that use the CSV Fortran module. The mdoule can be used by adding the following line to the fpm.toml
file:
[dependencies]
csv-fortran = { git="https://github.com/jacobwilliams/csv-fortran.git" }
We will first try to build the given example programs that come with the module. The example programs are showcased in the documentation for the CSV Fortran module, which is available at the following link: CSV Fortran Module Documentation