csv-fortran
csv-fortran copied to clipboard
Read and Write CSV Files Using Modern Fortran
Fixes #24
Building the install target in Visual Studio (Intel Parallel Studio) fails because the modules end up in a subdirectory under `Fortran_MODULE_DIRECTORY` named after the configuration. See [here](https://cmake.org/cmake/help/latest/prop_tgt/Fortran_MODULE_DIRECTORY.html#fortran-module-directory). I solved it...
Here is the test CSV file: ``` foo,bar 1.0,2.0 ,4.0 5.0, 7.0, ``` And with following codes: ```fortran program test use csv_module implicit none type(csv_file) f logical status_ok character(10), allocatable...
Fixes #9
May want to split `csv_file` into two classes: one for reading and one for writing. Currently using the same one for both, but really they are two separate operations.
Currently it doesn't properly handle reading a string cell that contains a delimiter. Figure out a way to do this.
Calling `destroy_csv_file` at the start of `read_csv_file` and `open_csv_file` clobbers any non-default settings e.g. new choice of delimiter is ignored.
Need to add support to read/write quad precision (`real128`) real kinds.
Related to #16 This PR proposes an optional to replace missing values in CSV by a desired value. @dongli @epagone @jacobwilliams