TheGeneGenieProject / GeneGenie.Gedcom

A .Net library for loading, saving, working with and analysing family trees stored in the GEDCOM format.
GNU Affero General Public License v3.0
52 stars 23 forks source link

How to create an empty gedcom file? #121

Open HolyOne opened 1 year ago

HolyOne commented 1 year ago

This code throws an exception.

GedcomDatabase gd0 = new GedcomDatabase(); GedcomRecordWriter.OutputGedcom(gd0, fn);

Similarly I cannot write a GedcomDatabase if I did not read from a file but created with new.

Could you give an example to create a new database, insert a small family into it?