exists(dbFileName) ? "r+" : "w+"
Will fix it.Of course you shouldn't delete the file like that method is doing. It should probably reinitialize the FILE* descriptor.
rikki cattermole via Digitalmars-d-learn Mon, 29 Aug 2022 08:56:03 -0700
exists(dbFileName) ? "r+" : "w+"
Will fix it.Of course you shouldn't delete the file like that method is doing. It should probably reinitialize the FILE* descriptor.