Skip to content

Commit cf7924a

Browse files
Merge pull request #13 from jacobwilliams/develop
Develop
2 parents 3ced242 + 2e781bc commit cf7924a

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ A modern Fortran library for reading and writing CSV (comma-separated value) fil
66

77
[![GitHub release](https://img.shields.io/github/release/jacobwilliams/fortran-csv-module.svg?style=plastic)](https://github.com/jacobwilliams/fortran-csv-module/releases/latest)
88

9+
### Getting started
10+
#### Get the code
11+
```bash
12+
git clone https://github.com/jacobwilliams/fortran-csv-module
13+
cd fortran-csv-module
14+
```
15+
#### Dependencies
16+
1. Git
17+
2. FoBis or [fpm](https://github.com/fortran-lang/fpm)
18+
3. Ford (optional)
19+
#### Build with FoBis
20+
You can build using provided `build.sh`:
21+
```bash
22+
./build.sh
23+
```
24+
25+
#### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm)
26+
Fortran Package Manager (fpm) is a great package manager and build system for Fortran.
27+
You can build using provided `fpm.toml`:
28+
```bash
29+
fpm build
30+
```
31+
To use `fortran-csv-module` within your fpm project, add the following to your `fpm.toml` file:
32+
```toml
33+
[dependencies]
34+
fortran-csv-module = { git="https://github.com/jacobwilliams/fortran-csv-module.git" }
35+
```
36+
937
### Examples
1038

1139
Everything is handled by an object-oriented `csv_file` class. Here is an example for writing a file:

fpm.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ version = "1.3.0"
33
author = "Jacob Williams"
44
maintainer = "Jacob Williams"
55
copyright = "Copyright (c) 2017-2021, Jacob Williams"
6-
license = "BSD"
6+
license = "BSD-3"
77
description = "Read and Write CSV Files Using Modern Fortran"
88
homepage = "https://github.com/jacobwilliams/fortran-csv-module"
9+
categories = ["io"]
10+
keywords = ["csv"]
911

1012
[library]
1113
source-dir = "src"

0 commit comments

Comments
 (0)