func (a *Api) WriteData(d filestore.DataPoint) { f := filestore.OpenForWrite(a.filename) defer f.Close() d.Write(f) }