diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2017-10-25 22:00:27 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2017-10-25 23:15:54 +0300 |
| commit | 46b03de3685b8714f97013d435a337ba4c0eaa8e (patch) | |
| tree | 7c36306af66285e26dc5bfddd47a4ab45dd86f4c /README.md | |
| download | nimrec-46b03de3685b8714f97013d435a337ba4c0eaa8e.tar.gz nimrec-46b03de3685b8714f97013d435a337ba4c0eaa8e.zip | |
initial commit
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..89c1871 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# Rec file parser for Nim + +Using this library you can parse rec files made by the +[recutils][https://www.gnu.org/software/recutils/] software. + +# Examples + +If you have the following recfile: + +``` +Name: John Doe +Age: 34 + +Name: Jane Doe +Age: 32 +``` + +You can read the names of the persons like this: + +```nim +import nimrec +import streams + +for record in records(newFileStream("persons.rec")): + echo(record["Name"]) +``` + +More examples can be found in the `examples` directory. |
