dbm.gnu.open(filename[, flag[, mode]])
Open a gdbm database and return a gdbm object. The filename argument is the name of the database file.
The optional flag argument can be:
Value Meaning 'r' Open existing database for reading only (default) 'w' Open existing database for reading and writing 'c' Open database for reading and writing, creating it if it doesn’t exist 'n' Always create a new, empty database, open for reading and writing
The following additional characters may be appended t